API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classDistanceJoint

@codexo/exojs-physics / physics / stable

Holds the anchor points on two bodies at a target length along their connecting axis. With `hertz === 0` it is rigid; with `hertz > 0` it behaves as a damped spring. Solved as a soft constraint in the sub-step loop, warm- started across frames.

8
props
0
methods
0
events
Import
import { DistanceJoint } from '@codexo/exojs-physics'

Holds the anchor points on two bodies at a target length along their connecting axis. With `hertz === 0` it is rigid; with `hertz > 0` it behaves as a damped spring. Solved as a soft constraint in the sub-step loop, warm- started across frames.

Constructors 1
new(options: DistanceJointOptions): DistanceJoint
Properties 8
bodyA: PhysicsBody
bodyB: PhysicsBody
dampingRatio: number
enabled: boolean
hertz: number
length: number
maxLength: number
minLength: number
Source