Documentation / Node reference / code nodes

code/SDFTube

Returns the distance to a cylinder or cone with flat ends.

Sdf3d

Returns the distance to a tube along Y, with flat ends. It is a cylinder, or a cone when the bottom has its own radius.

Parameters

Name Type What it does
useBottomRadius Bool Give the bottom its own radius, for a cone.
P Vector3 Position to measure from. Unwired, it uses the sample position.
t Vector3 Tube center.
height Float Length along Y.
radiusTop Float Top radius. Also the bottom's unless useBottomRadius is on.
radiusBottom Float Bottom radius. 0 makes a pointed cone.

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.