WheelJointComponent Class
Definition
Namespace: Brine2D.ECS.Components.Joints
Models a vehicle wheel: body B translates along a local axis on body A and can rotate freely. Supports suspension spring, translation limits, and a spin motor.
Inheritance System.Object → Component → JointComponent → WheelJointComponent
| Properties | |
|---|---|
| EnableSpring | Enable the suspension spring. |
| Hertz | Suspension spring frequency in Hz. |
| LocalAxisA | Suspension axis in body A local space \(normalized\). Default is System.Numerics.Vector2.UnitY \(vertical suspension\). |
| LowerTranslation | Lower suspension travel limit in pixels. |
| MaxMotorTorque | Maximum torque the spin motor can apply \(N·m\). |
| MotorSpeed | Desired wheel spin speed in radians per second. |
| MotorTorque | Current reaction torque at the motor \(N·m\). Returns 0 if not yet live. |
| UpperTranslation | Upper suspension travel limit in pixels. |