NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class NOSModuleWrapper

    MonoBehaviour wrapper for the NOS module. Goes on a GameObject that already has a VehicleController; registration and lifecycle are handled by ModuleWrapper.

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

    Fields

    module

    The wrapped NOS module instance. Holds all NOS config and runtime state.

    Declaration
    public NOSModule module
    Field Value
    Type Description
    NOSModule

    Methods

    GetModule()

    Gets the wrapped module as a VehicleComponent.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The NOSModule instance cast to VehicleComponent

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the wrapped module from a VehicleComponent reference.

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

    The VehicleComponent to wrap, must be a NOSModule instance

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