Atlas Engine
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

anchorB: Position3d;

restLength

restLength: number;

useLimits

useLimits: boolean;

minLength

minLength: number;

maxLength

maxLength: number;

spring

spring: Spring;

Methods

beforePhysics

override beforePhysics(): void;

breakJoint

Breaks the physical constraint between the joint members.

override breakJoint(): void;

On this page