Capsule

Capsule icon

In: SDF function > Primitive

Description

An SDF function for a capsule of adjustable length and radius.
The capsule is the result of bridging two spheres.

Inputs

Inputs

Start Float3
The position of the start sphere.

Default: (0, 0, 0)
End Float3
The position of the end sphere.

Default: (0, 0, 1)
Radius Float
The radius of both the start and end spheres.

Default: 0.25
Start/end at tip Boolean
Controls whether the Start and End positions should be at the extremities of the spheres.
I.e., controls if the height of the capsule should include the radius of the spheres.

Default: False
Center position Float3
The world space position of the pivot of the capsule.

Default: (0, 0, 0)
P Float3
The transformed world space position. Use this input to apply additional transformations using the Offset P and Rotate P nodes.

Default: The untransformed world space position.
recommendation-more-help
dd48abc6-e399-43d2-9777-578ec70c5a23