API Referencebezel
Joint
Base component for a physical constraint between two joint members.
Module: bezel
Base component for a physical constraint between two joint members.
Declaration
export abstract class Joint extends Component { ... }Extends: Component
Properties
parent
The parent.
parent: JointMember;child
The child.
child: JointMember;space
The space.
space: Space;anchor
The anchor.
anchor: Position3d;breakForce
The break force.
breakForce: number;breakTorque
The break torque.
breakTorque: number;Methods
init
Initializes the component after it is attached.
override init(): void;update
Updates the component for the current frame.
override update(deltaTime: number): void;beforePhysics
Runs immediately before the physics simulation step.
abstract override beforePhysics(): void;breakJoint
Breaks the physical constraint between the joint members.
abstract breakJoint(): void;