WheelJointDef

constructor(bodyA: Body, bodyB: Body, localAnchorA: Vec2 = Vec2.Zero, localAnchorB: Vec2 = Vec2.Zero, localAxisA: Vec2 = Vec2(0f, 1f), enableSpring: Boolean = true, hertz: Float = 1.0f, dampingRatio: Float = 0.7f, enableLimit: Boolean = false, lowerTranslation: Float = 0.0f, upperTranslation: Float = 0.0f, enableMotor: Boolean = false, maxMotorTorque: Float = 0.0f, motorSpeed: Float = 0.0f, collideConnected: Boolean = false)

Parameters

bodyA

The first attached body (usually the car chassis)

bodyB

The second attached body (usually the wheel)

localAnchorA

The local anchor point relative to bodyA's origin

localAnchorB

The local anchor point relative to bodyB's origin

localAxisA

The local translation unit axis in bodyA (suspension direction)