API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classPrismaticJoint
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.
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.
new(options: PrismaticJointOptions): PrismaticJoint bodyA: PhysicsBody bodyB: PhysicsBody enabled: boolean enableLimit: boolean enableMotor: boolean lowerTranslation: number maxMotorForce: number motorSpeed: number upperTranslation: number