⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    AddForce MotionGraphBehaviour

    Overview

    The AddForce behaviour adds a force to the character at specific points. This can have a variety of uses, but one key one is as an alternative way to handle jumping that doesn't require interrupting other states like the jump motion state does.

    Inspector

    AddForce

    Properties

    Name Type Description
    When Dropdown When should the force be added to the character. Options are OnEnter, OnExit and WhenTriggered.
    Trigger Parameter Trigger Parameter A trigger that will be checked each frame, and the force applied if the trigger is set. This property is only visible if "When" is set to WhenTriggered.
    Force Parameter Vector Parameter The force to apply to the character.
    Force Vector The force to apply to the character. This property is shown if a "Force Parameter" has not been chosen.
    Force Mode ForceMode How should the force be applied. Options are Force (takes mass and time into account), Impulse (takes mass into account), VelocityChange (mass and time are irrelevant), Acceleration (takes time into account).
    Space Dropdown What coordinate space should the force be applied in. Options are World and Self.

    See Also

    NeoCharacterController

    Motion Graph Parameters And Data

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