API Referencebezel
SpringJoint
Distance constraint with spring behavior and optional length limits.
Module: bezel
Distance constraint with spring behavior and optional length limits.
Declaration
export class SpringJoint extends Joint { ... }Extends: Joint
Properties
anchorB
The anchor b.
anchorB: Position3d;restLength
The rest length.
restLength: number;useLimits
Whether minimum and maximum length limits are enforced.
useLimits: boolean;minLength
The minimum length.
minLength: number;maxLength
The maximum length.
maxLength: number;spring
The spring.
spring: Spring;Methods
beforePhysics
Runs immediately before the physics simulation step.
override beforePhysics(): void;breakJoint
Breaks the physical constraint between the joint members.
override breakJoint(): void;