NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class ArcadeModuleWrapper

    MonoBehaviour wrapper for the Arcade module.

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

    Carries the MonoBehaviour lifecycle and serialization; the assist logic lives in module, which is also where runtime tuning and the drift angle read go. Add via Add Component > NWH > Vehicle Physics 2 > Modules > Arcade Module.

    Fields

    module

    The ArcadeModule instance managed by this wrapper.

    Declaration
    public ArcadeModule module
    Field Value
    Type Description
    ArcadeModule

    Methods

    GetModule()

    Returns the contained ArcadeModule as a VehicleComponent.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The ArcadeModule instance cast to VehicleComponent.

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the contained module from a VehicleComponent reference.

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

    The VehicleComponent to set, must be an ArcadeModule instance.

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