API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classWheelJoint
A wheel attached to a chassis: free to **spin** (no rotation lock) and sprung along a **suspension axis** (a soft spring), but locked **laterally** (it cannot slide perpendicular to the axis). Optionally driven by a rotation motor and/or bounded by a suspension-travel limit. Used for vehicles. Solved in the sub-step loop, warm-started.
import { WheelJoint } from '@codexo/exojs-physics' A wheel attached to a chassis: free to **spin** (no rotation lock) and sprung along a **suspension axis** (a soft spring), but locked **laterally** (it cannot slide perpendicular to the axis). Optionally driven by a rotation motor and/or bounded by a suspension-travel limit. Used for vehicles. Solved in the sub-step loop, warm-started.
new(options: WheelJointOptions): WheelJoint bodyA: PhysicsBody bodyB: PhysicsBody dampingRatio: number enabled: boolean enableLimit: boolean enableMotor: boolean hertz: number lowerTranslation: number maxMotorTorque: number motorSpeed: number upperTranslation: number