Documentation / Node reference / code nodes

code/SDFBoxFrame

Returns the distance to a box frame.

Sdf3d

Returns the distance to the edges of a box: twelve square bars, and open faces. The bars stay inside the box size.

Parameters

Name Type What it does
P Vector3 Position to measure from. Unwired, it uses the sample position.
t Vector3 Frame center.
size Vector3 Length along X, Y and Z.
scale Float Multiplies the size.
width Float Half thickness of each bar.

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.