API reference

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

C

classPrismaticJoint

@codexo/exojs-physics / physics / stable

Constrains a body to **slide along a single axis** relative to another: the perpendicular translation and the relative rotation are locked (a 2×2 block); only translation along the axis is free, optionally driven by a motor and/or bounded by a translation limit. Solved in the sub-step loop, warm-started.

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

Constrains a body to **slide along a single axis** relative to another: the perpendicular translation and the relative rotation are locked (a 2×2 block); only translation along the axis is free, optionally driven by a motor and/or bounded by a translation limit. Solved in the sub-step loop, warm-started.

Constructors 1
new(options: PrismaticJointOptions): PrismaticJoint
Properties 9
bodyA: PhysicsBody
bodyB: PhysicsBody
enabled: boolean
enableLimit: boolean
enableMotor: boolean
lowerTranslation: number
maxMotorForce: number
motorSpeed: number
upperTranslation: number
Source