The Spline Sampler node is the basic tool for fetching position, rotation or direction data from a spline and for sending the data to e.g. Mover or Advanced Rotator nodes. In effect, the node lets you move or place objects along a spline curve. You'll need to give the Spline Sampler an existing Spline node as the target.
You can connect multiple Spline Samplers to the same spline.
Parameter | Explanation |
---|---|
Target | Target an existing Spline node from which to read the information. |
Execute | Executes the component. |
On Start | If enabled, node will be exectued when the game starts or when it's spawned. |
Enabled | Determines if the node and its functions are active or disabled. |
Type (earlier: Domain) | If you select Relative (earlier: Fraction), the sampling value at the start of the spline is 0, and 1 at the end. This option works well for moving objects along the spline. With the Length (earlier: Distance) option, the starting value is 0, and the end value is the total length of the spline. The Length option works well for placing objects on the spline. |
Wrap | Repeat or Clamp. |
Input | You need to input the values that specify the sampling points on a spline. To go through an entire spline, you could e.g. connect a Wave node into this input. |
Position At | Outputs the XYZ position vector at a spline location specified by the input. This can be sent e.g. to a Mover node's vector input |
Tangent At | Outputs the Tangent aka. direction vector at a spline location specified by the input. |
Rotation | Outputs the Rotation at a spline location specified by the input. Note: the rotation output is a number, not a vector. If you're using this data to rotate an object, use the Advanced Rotator node which can deal with numerical rotation values. |
Did wrap | Executes if Wrap mode is set to Repeat and input wraps around the spline. |