ProtoFlux:Sample Spatial Variable: Difference between revisions

From Resonite Wiki
Fixed Category again... (I forgot it did not work like that XD)
Line 22: Line 22:
=== Point ([[Type:float3|float3]]) ===  
=== Point ([[Type:float3|float3]]) ===  


The point to check in 3D space.
The point to check in global 3D space.


=== Name ([[Type:String|String]]) ===
=== Name ([[Type:String|String]]) ===

Revision as of 12:46, 10 May 2025

Sample SpatialVar
Point
*
Name
DefaultValue
Spatial

The Sample Spatial Variable node takes in a point in 3D space, a name that matches that space, and a default value if that space cannot be found, then returns the value found in the space, otherwise it will return the default value.

This node works with spatial variable components, and will need a BoxConstantValueSpatialVariable or similar to function as expected.

Inputs

Point (float3)

The point to check in global 3D space.

Name (String)

The named space/area to look for.

DefaultValue (Pseudo-Generic)

If a named space cannot be found, use this value.

Outputs

* (Pseudo-Generic)

Returns the value found in this space/area, otherwise return the default value.