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 ClothCollider
import 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

NameTypeDescription
jointreadonlynumber
radiusreadonlynumber
radius2readonlyoptionalnumberThe radius at the far end; the same as radius where absent.
lengthreadonlyoptionalnumberMetres along the frame's +Z; zero or absent is a sphere.
framereadonlyoptionalFloat32ArraySixteen floats, column-major, in the joint's space; identity where absent.