Skip to content

Documentation / scene / Constraint

Interface: Constraint

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

Distance constraint between two points.

Properties

isCollision

isCollision: number

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

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:168

Constraint topology type


indexA

indexA: number

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

Index of first connected point


indexB

indexB: number

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

Index of second connected point


length

length: number

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

Rest length — the target distance between the two points

Released under the MIT License.