NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class FlipOverModuleWrapper

    MonoBehaviour wrapper for the FlipOver module.

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

    Goes on a GameObject with a VehicleController. Holds the MonoBehaviour lifecycle and the serialized data; the flip-over logic itself lives in the module. Read flippedOver through module to drive a UI prompt.

    Fields

    module

    The FlipOverModule instance managed by this wrapper.

    Declaration
    public FlipOverModule module
    Field Value
    Type Description
    FlipOverModule

    Methods

    GetModule()

    Returns the contained FlipOverModule as a VehicleComponent.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The FlipOverModule 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 FlipOverModule instance.

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