Class AirSteerModule
Mid-air orientation control. Applies relative torque from driver input: steering yaws, throttle pitches the nose down and brake pitches it up.
Inherited Members
Namespace: NWH.VehiclePhysics2.Modules.AirSteer
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
public class AirSteerModule : VehicleComponent
Remarks
Runs only while no wheel is grounded, so it never fights the driving physics.
Fields
pitchTorque
Nm applied around the local X axis for pitch, from throttle (nose down) and brake (nose up). 0 disables pitch control while leaving yaw active.
Declaration
[Tooltip("Torque applied around the X axis to steer the vehicle while in the air (nose up, down).\r\nActivated with throttle / brake input.")]
public float pitchTorque
Field Value
| Type | Description |
|---|---|
| float |
Remarks
Scale with vehicle mass: torque = baseTorque * (vehicleMass / 1500kg).
yawTorque
Nm applied around the local Y axis for yaw, from steering input. Positive steering yaws the nose right. 0 disables aerial steering while leaving pitch active.
Declaration
[Tooltip("Torque applied around the Y axis to steer the vehicle while in the air (nose left/right).\r\nActivated with steering input.")]
public float yawTorque
Field Value
| Type | Description |
|---|---|
| float |
Remarks
Scales with vehicle mass the same way pitchTorque does.
Methods
VC_FixedUpdate(float)
Fixed-timestep update for forces, torques and other physics work. Called from VehicleController.FixedUpdate(), and only while the component is active.
Declaration
public override void VC_FixedUpdate(float DeltaTime)
Parameters
| Type | Name | Description |
|---|---|---|
| float | DeltaTime | Time elapsed since last FixedUpdate in seconds |