NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class AirSteerModuleWrapper

    MonoBehaviour wrapper for the AirSteer module.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    ModuleWrapper
    AirSteerModuleWrapper
    Namespace: NWH.VehiclePhysics2.Modules.AirSteer
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    [Serializable]
    [DisallowMultipleComponent]
    public class AirSteerModuleWrapper : ModuleWrapper
    Remarks

    Required component wrapper that allows the AirSteerModule to be attached to a GameObject with a VehicleController. The wrapper handles Unity's MonoBehaviour lifecycle and serialization while delegating aerial control logic to the contained module.

    Add this component to a vehicle GameObject through: - Unity Editor: Add Component > NWH > Vehicle Physics 2 > Modules > Air Steer Module - Script: gameObject.AddComponent<AirSteerModuleWrapper>()

    The module can be accessed at runtime through the module field to: - Dynamically adjust torque values - Enable/disable aerial control - Implement vehicle-specific aerial handling - Create power-ups that modify air control

    Fields

    module

    The air steer module instance that handles aerial vehicle control.

    Declaration
    public AirSteerModule module
    Field Value
    Type Description
    AirSteerModule

    Methods

    GetModule()

    Gets the air steer module instance.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The AirSteerModule instance as a VehicleComponent.

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the air steer module instance.

    Declaration
    public override void SetModule(VehicleComponent module)
    Parameters
    Type Name Description
    VehicleComponent module

    The VehicleComponent to set as the air steer module.

    Overrides
    ModuleWrapper.SetModule(VehicleComponent)
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics