⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    PositionBob MonoBehaviour

    Overview

    The PositionBob behaviour is used to apply a bob effect to the player character's head and weapon. The bob syncs steps with the RotationBob effect and the various sprint handlers. It can also blend the bob effect between the head and weapon object to keep a consistent effect while reducing head movement for people that find it causes them motion sickness. This is controlled via the head bob setting in the FpsGameplaySettings.

    Inspector

    PositionBob

    Properties

    Name Type Description
    Bob Data PositionBobData The bob animation data, shared between the head and the item/weapon.
    Bob Type Dropdown Is this bob being applied to the head or the item (allows the effect to blend between the 2 with similar results based on game settings).
    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

    RotationBob

    Gameplay Settings

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