⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    SwimStrokeUnderwaterState MotionGraphState

    Overview

    The SwimStrokeUnderwaterState state is used to move in all axes when underwater. It moves in strokes, pulling forward and the recovering.

    Inspector

    SwimStrokeUnderwaterState State

    Properties

    Name Type Description
    Water Zone TransformParameter The transform parameter which contains the transform of the water zone object.
    Jump Hold SwitchParameter A switch parameter which tracks if the jump button is held (swim up).
    Crouch Hold SwitchParameter A switch parameter which tracks if the crouch button is held (swim down).
    Stroke Speed FloatData The top movement speed (for keyboard input or max analog input).
    Acceleration FloatData The maximum acceleration.
    Strafe Multiplier FloatData The multiplier applied to the max movement speed and acceleration when strafing.
    Reverse Multiplier FloatData The multiplier applied to the max movement speed and acceleration when moving backwards.
    Idle Multiplier FloatData The multiplier applied to the acceleration when no input is detected.
    Up Down Speed FloatData The maximum movement speed and acceleration due to up or down input.
    Stroke Duration Float The length of time a swimming stroke lasts (will be scaled by strafe / reverse multipliers).
    Recovery Duration Float The length of time in between swimming strkes (will be scaled by strafe / reverse multipliers).
    Recovery Speed Multiplier Float A multiplier applied to the speed in between strokes.
    Recovery Acceleration Multiplier Float A multiplier applied to the acceleration (and deceleration) in between strokes.
    Slow Input Time Scale Float At the minimum input amount, how much slower are strokes and recovery.

    See Also

    The Motion Graph

    The Motion Graph Editor

    Motion Graph States

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