⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Repulse MotionGraphState

    Overview

    The repulse state adds a simple directional impulse away from the repulsor transform to the character for a single tick and then sets its completed flag. You should add an out-bound connection from this state that uses the CompletedCondition, connecting to an airborne state.

    Inspector

    Repulse State

    Properties

    Name Type Description
    Repulsor Transform TransformParameter The transform parameter on the graph that is used to specify which transform to repulse from.
    Nullify Transform Boolean Should the transform be nullified after use?
    Repulsion Vector Vector3 The velocity vector to apply to the character relative to the repulsor transform.
    Repulse Multiplier Float Data A multiplier for the repulsion vector. This can either be set as a value, or by referencing a float data entry.
    Minimum Distance Float The minimum distance the state should attempt to move before completing. This prevents a very small fixed time step causing the movement to be too small to overcome ground snapping / detection.

    See Also

    The Motion Graph

    Motion Graph States

    Motion Graph Parameters And Data

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