Spatial variables

From Resonite Wiki
Revision as of 05:00, 9 May 2025 by 989onan (talk | contribs) (add link)

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

Spatial variables allow for sampling values and references from points in global space. They are mainly used via components, but there are ProtoFlux nodes for sampling them as well. Currently there are just two shapes that can be used with spatial variables: box and sphere.

Types of spatial variables

  • Constant Reference Box/Sphere
  • Constant Value Box/Sphere
  • Gradient Value Box
  • Texture3D Box
  • Vertex Value Box
  • Start End Value Sphere

Types of spatial variable drivers/samplers

  • Value
  • Boolean
  • Reference
  • Type
  • Min Max Value
  • Numeric Value

Usage

  1. Create a spatial variable from one of the types listed above.
  2. Create a driver/sampler (or multiple) from one of the types listed above. It will sample the value from inside of the shape.

It's that simple! Now, when the sampler is inside of the spatial variable's range, it should output a value.

See Also