NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class CruiseControlModuleWrapper

    MonoBehaviour wrapper for the CruiseControl module. This wrapper allows the CruiseControlModule to be attached as a component to a VehicleController GameObject. The module provides automatic speed control functionality using a PID controller.

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

    Fields

    module

    The cruise control module instance that handles automatic speed maintenance.

    Declaration
    public CruiseControlModule module
    Field Value
    Type Description
    CruiseControlModule

    Methods

    GetModule()

    Gets the cruise control module instance.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The CruiseControlModule instance as a VehicleComponent.

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the cruise control module instance.

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

    The VehicleComponent to set as the cruise control module.

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