Documentation / Node reference / code nodes

code/SDFHexPrism

Returns the distance to a hexagonal prism.

Sdf3d

Returns the distance to a hexagonal prism. The hexagon lies in the XY plane, with corners along X, and extends along Z.

Parameters

Name Type What it does
P Vector3 Position to measure from. Unwired, it uses the sample position.
t Vector3 Prism center.
radius Float Distance from the center to a corner.
height Float Length along Z.

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.