NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class AirSteerModule

    Mid-air orientation control. Applies relative torque from driver input: steering yaws, throttle pitches the nose down and brake pitches it up.

    Inheritance
    object
    VehicleComponent
    AirSteerModule
    Inherited Members
    VehicleComponent.state
    VehicleComponent.vehicleController
    VehicleComponent.IsActive
    VehicleComponent.VC_Initialize(VehicleController)
    VehicleComponent.VC_Initialize()
    VehicleComponent.VC_SetDefaults()
    VehicleComponent.VC_LoadStateFromStateSettings()
    VehicleComponent.VC_Update(float)
    VehicleComponent.VC_Enable(bool)
    VehicleComponent.VC_Disable(bool)
    VehicleComponent.VC_DrawGizmos()
    VehicleComponent.VC_Validate(VehicleController)
    VehicleComponent.UpdateLOD()
    VehicleComponent.ToggleState()
    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

    Overrides
    VehicleComponent.VC_FixedUpdate(float)

    See Also

    ModuleManager
    VehicleController
    WheelComponent
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics