Skip to content

Documentation / scene / Constraint

Interface: Constraint ​

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:158

Distance constraint between two points.

Properties ​

isCollision ​

isCollision: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:160

Whether collision detection runs for this constraint's bone pair (0 or 1)


type ​

type: ConstraintType

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:162

Constraint topology type


indexA ​

indexA: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:164

Index of first connected point


indexB ​

indexB: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:166

Index of second connected point


length ​

length: number

Defined in: libs/scene/src/animation/joint_dynamics/types.ts:168

Rest length — the target distance between the two points

Released under the MIT License.