API reference

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

C

classWheelJoint

@codexo/exojs-physics / physics / stable

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.

11
props
0
methods
0
events
Import
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.

Constructors 1
new(options: WheelJointOptions): WheelJoint
Properties 11
bodyA: PhysicsBody
bodyB: PhysicsBody
dampingRatio: number
enabled: boolean
enableLimit: boolean
enableMotor: boolean
hertz: number
lowerTranslation: number
maxMotorTorque: number
motorSpeed: number
upperTranslation: number
Source