NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class SpeedLimiterModuleWrapper

    MonoBehaviour wrapper for the SpeedLimiter module.

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

    Fields

    module

    The SpeedLimiterModule instance managed by this wrapper.

    Declaration
    public SpeedLimiterModule module
    Field Value
    Type Description
    SpeedLimiterModule

    Methods

    GetModule()

    Returns the contained SpeedLimiterModule as a VehicleComponent.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The SpeedLimiterModule 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 a SpeedLimiterModule instance.

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