Skip to main content

Capsule

Capsule is a primitive object that creates a capsule.

Syntax

<Capsule />

Parameters

All objects share the same base parameters from ComponentObjectProps.

NameTypeDescription
radiusnumberThe radius of the capsule.
lengthnumberThe length of the capsule.
capSegmentsnumberThe number of segments of the capsule's caps.
radialSegmentsnumberThe number of segments of the capsule's cylinder.
bloombooleanWhether use bloom effect.
colorColorTypeThe base color.
materialObjectMaterialMixThe material.

Example

<Capsule radius={0.5} length={1} />

Available on: Client Server