NWH Aerodynamics
Search Results for

    Show / Hide Table of Contents

    Class LandingGear

    Class for managing the landing gear of an aircraft, including steering and animation.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AircraftMonoBehaviour
    LandingGear
    Inherited Members
    AircraftMonoBehaviour._aircraftController
    AircraftMonoBehaviour._inputManager
    AircraftMonoBehaviour.Awake()
    Namespace: NWH.Aerodynamics.AircraftController
    Assembly: NWH.Aerodynamics.dll
    Syntax
    [Serializable]
    public class LandingGear : AircraftMonoBehaviour

    Fields

    | Edit this page View Source

    animator

    Landing gear retract / extend animator. Can be left empty if no animation is used.

    Declaration
    [Tooltip("Landing gear retract / extend animator. Can be left empty if no animation is used.")]
    public Animator animator
    Field Value
    Type Description
    Animator
    | Edit this page View Source

    animatorRetractName

    Name of the landing gear retract state in format of [LayerName].[StateName].

    Declaration
    [Tooltip("Name of the landing gear retract state in format of [LayerName].[StateName].")]
    public string animatorRetractName
    Field Value
    Type Description
    string
    | Edit this page View Source

    brakeTorque

    Brake torque of the WheelCollider when using brakes or parking brake.

    Declaration
    [Tooltip("Brake torque of the WheelCollider when using brakes or parking brake.")]
    public float brakeTorque
    Field Value
    Type Description
    float
    | Edit this page View Source

    frictionForce

    Rolling friction force applied when the landing gear wheel is touching the ground.

    Declaration
    [Tooltip("Rolling friction force applied when the landing gear wheel is touching the ground.")]
    public float frictionForce
    Field Value
    Type Description
    float
    | Edit this page View Source

    isExtended

    True if landing gear is extended. Does not take into account animation duration so will be toggled as soon as the input is pressed.

    Declaration
    [Tooltip("    True if landing gear is extended. Does not take into account animation duration\r\n    so will be toggled as soon as the input is pressed.")]
    public bool isExtended
    Field Value
    Type Description
    bool
    | Edit this page View Source

    lockBrakesOnSleep

    Should the brakes be engaged when the vehicle is put to sleep?

    Declaration
    [Tooltip("Should the brakes be engaged when the vehicle is put to sleep?")]
    public bool lockBrakesOnSleep
    Field Value
    Type Description
    bool
    | Edit this page View Source

    lowerSuspensionArm

    Lower suspension arm transform. Requires proper rotation/pivot.

    Declaration
    [Tooltip("Lower suspension arm transform. Requires proper rotation/pivot.")]
    public Transform lowerSuspensionArm
    Field Value
    Type Description
    Transform
    | Edit this page View Source

    maxSteerAngle

    Maximum steer angle for the landing gear. Set to 0 to disable.

    Declaration
    [Tooltip("Maximum steer angle for the landing gear. Set to 0 to disable.")]
    public float maxSteerAngle
    Field Value
    Type Description
    float
    | Edit this page View Source

    parkingBrakeActivateOnStart

    Should parking brake be active on start?

    Declaration
    [Tooltip("Should parking brake be active on start?")]
    public bool parkingBrakeActivateOnStart
    Field Value
    Type Description
    bool
    | Edit this page View Source

    parkingBrakeActive

    Is the parking brake currently active?

    Declaration
    [Tooltip("Is the parking brake currently active?")]
    public bool parkingBrakeActive
    Field Value
    Type Description
    bool
    | Edit this page View Source

    position

    Position of the landing gear on an aircraft.

    Declaration
    [Tooltip("Position of the landing gear on an aircraft.")]
    public LandingGear.LandingGearPosition position
    Field Value
    Type Description
    LandingGear.LandingGearPosition
    | Edit this page View Source

    releaseBrakesOnWake

    Should brakes be released when the vehicle is woken up?

    Declaration
    [Tooltip("Should brakes be released when the vehicle is woken up?")]
    public bool releaseBrakesOnWake
    Field Value
    Type Description
    bool
    | Edit this page View Source

    retractable

    Does the landing gear retract?

    Declaration
    [Tooltip("Does the landing gear retract?")]
    public bool retractable
    Field Value
    Type Description
    bool
    | Edit this page View Source

    staticTransform

    Static transform that is kept at constant offset to the wheel position. Can be used for wheel hood, brake system or other objects that move but do not rotate with the wheel. Requires proper rotation/pivot.

    Declaration
    [Tooltip("    Static transform that is kept at constant offset to the wheel position. Can be used for wheel hood, brake system\r\n    or other objects that move but do not rotate with the wheel. Requires proper rotation/pivot.")]
    public Transform staticTransform
    Field Value
    Type Description
    Transform
    | Edit this page View Source

    steerSpeed

    Speed of steering angle change for the WheelCollider.

    Declaration
    [Range(0, 1)]
    [Tooltip("Speed of steering angle change for the WheelCollider.")]
    public float steerSpeed
    Field Value
    Type Description
    float
    | Edit this page View Source

    upperSuspensionArm

    Upper suspension arm transform. Requires proper rotation/pivot.

    Declaration
    [Tooltip("Upper suspension arm transform. Requires proper rotation/pivot.")]
    public Transform upperSuspensionArm
    Field Value
    Type Description
    Transform
    | Edit this page View Source

    wheel

    The transform representing the wheel. Correct pivot/rotation required.

    Declaration
    [Tooltip("The transform representing the wheel. Correct pivot/rotation required.")]
    public Transform wheel
    Field Value
    Type Description
    Transform
    | Edit this page View Source

    wheelCollider

    Target WheelCollider.

    Declaration
    [Tooltip("Target WheelCollider.")]
    public WheelCollider wheelCollider
    Field Value
    Type Description
    WheelCollider

    Methods

    | Edit this page View Source

    Extend()

    Extends the landing gear by playing the retract animation in reverse. Called when gear extension is commanded. No effect if animator is not assigned.

    Declaration
    public void Extend()
    | Edit this page View Source

    FixedUpdate()

    Declaration
    public void FixedUpdate()
    | Edit this page View Source

    Retract()

    Retracts the landing gear by playing the retract animation forward. Called when gear retraction is commanded. No effect if animator is not assigned.

    Declaration
    public void Retract()
    | Edit this page View Source

    Start()

    Declaration
    public void Start()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics