Documentation / Node reference / code nodes

code/SDFTransform

Moves, rotates and scales a position, to move what reads it.

Sdf3d

Returns the position moved by t, turned by q and scaled by s, so a shape that reads it moves with it. Multiply that shape's distance by s to keep it a true distance.

Parameters

Name Type What it does
P Vector3 Position to transform. Defaults to the sample position.
t Vector3 Translation.
q Vector4 Rotation, as a quaternion.
s Float Uniform scale.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.