⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    RotationBob MonoBehaviour

    Overview

    The RotationBob behaviour is used to apply a bob effect to the player character's weapon. The bob syncs steps with the PositionBob effect and the various sprint handlers. Rotation bob should be used sparingly and not applied to the character body or head as it can be very disorientating.

    Inspector

    RotationBob

    Properties

    Name Type Description
    Rotation Range Vector The maximum rotation on each axis at the peak of the bob. Negative values essentially offset the timing for that access to the other foot.
    Bob Curve [AnimationCurve][unity-animationcurve] The curve over one step cycle for the bob effect.
    Min Lerp Speed Float At or below this speed the bob will be scaled to zero.
    Max Lerp Speed Float At or above this speed the bob will have its full effect.

    See Also

    Additive Transforms

    PositionBob

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