Function createPhysicsConstraint
-
createPhysicsConstraint(
world: PhysicsWorld,
bodyA: PhysicsBody,
bodyB: PhysicsBody,
type: PhysicsConstraintType,
options?: PhysicsConstraintOptions,
limits?: readonly PhysicsConstraintLimit[],
): PhysicsConstraintParameters
- world: PhysicsWorld
The physics world.
- bodyA: PhysicsBody
Parent body.
- bodyB: PhysicsBody
Child body.
- type: PhysicsConstraintType
Constraint type.
- options: PhysicsConstraintOptions = {}
Pivot and axis options.
- limits: readonly PhysicsConstraintLimit[] = []
Optional 6DoF limits.
Returns PhysicsConstraint
- world: PhysicsWorld
Creates and enables a Havok constraint between two physics bodies.