Capsule
Capsule
is a primitive object that creates a capsule.
Syntax
<Capsule />
Parameters
All objects share the same base parameters from ComponentObjectProps
.
Name | Type | Description |
---|---|---|
radius | number | The radius of the capsule. |
length | number | The length of the capsule. |
capSegments | number | The number of segments of the capsule's caps. |
radialSegments | number | The number of segments of the capsule's cylinder. |
bloom | boolean | Whether use bloom effect. |
color | ColorType | The base color. |
material | ObjectMaterialMix | The material. |
Example
<Capsule radius={0.5} length={1} />
Available on: Client Server