ProtoFlux:Sample Spatial Variable: Difference between revisions

From Resonite Wiki
Created the Sample Spatial Variable node page.
 
Added category: ContinuouslyChanging nodes
 
(3 intermediate revisions by 2 users not shown)
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]]) ===
Line 38: Line 38:
Returns the value found in this space/area, otherwise return the default value.
Returns the value found in this space/area, otherwise return the default value.


[[Category:ProtoFlux:Variables:Sample Spatial Variable]]
[[Category:ProtoFlux:Variables:Spatial]]
[[Category:ContinuouslyChanging nodes]]

Latest revision as of 07:37, 27 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.