Physics · interface
ClothCollider
A collider on a joint: a sphere, or a tapered capsule along its frame's +Z.
Explained in Your first game, Rigid bodies.
interface ClothColliderimport type { ClothCollider } from '@driftengine/physics';In depth
Its frame is in the joint's own space, so it rides the joint whatever the animation does.
Properties
| Name | Type | Description |
|---|---|---|
jointreadonly | number | |
radiusreadonly | number | |
radius2readonlyoptional | number | The radius at the far end; the same as radius where absent. |
lengthreadonlyoptional | number | Metres along the frame's +Z; zero or absent is a sphere. |
framereadonlyoptional | Float32Array | Sixteen floats, column-major, in the joint's space; identity where absent. |