⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    PhysicsHingeDoor MonoBehaviour

    Overview

    The PhysicsHingeDoor behaviour handles latching and release of a physical hinge based door.

    Inspector

    PhysicsHingeDoor

    Properties

    Name Type Description
    Occlusion Portal OcclusionPortal An optional occlusion portal component for the doorway. This will be synced to the door opening and closing so that it occludes objects when closed.
    Reverse Direction Boolean Reverses the door opening direction.
    Open Angle Float The open limit of the door. When opening, force will be applied until the door reaches this angle.
    Open Velocity Float The target speed to move the door.
    Open Force Float The force applied to the door when opening or closing.
    Timeout Float A time limit for force to be applied. If the door is blocked, it would never reach full open or closed and this value prevents it trying forever.
    Auto Latch Position Float The normalised position (0 to 1 translates to closed to full open angle) at which the door will latch when closing.
    Auto Latch Block Time Float Prevent latching for a short perios when opened.
    Hinge HingeJoint The hinge joint of the door.
    Handle AnimatedDoorHandle An optional animated door handle. This will turn and release when the door is opened.
    Audio Open AudioClip The audio to play when the door is unlatched and opened.
    Audio Close AudioClip The audio to play when the door closes and latches.
    Audio Locked AudioClip The audio to play when attempting to open the door while locked.
    Audio Unlock AudioClip The audio to play when unlocking or locking the door.
    On Open UnityEvent An event fired when the door unlatches and starts opening.
    On Closed UnityEvent An event fired when the door is finished closing and latches.
    On Try Open Locked UnityEvent An event fired when attempting to open the door while locked.

    See Also

    Doors

    AnimatedDoorHandle

    Unity HingeJoint

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX