⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    HeadBob MonoBehaviour (Deprecated)

    Overview

    The HeadBob behaviour is used to move the camera in sync with character movement. This behaviour has been deprecated and replaced with the PositionBob and RotationBob systems which sync weapon and head bobbing, and allow player settings to reduce head movement.

    The head bob can tie into the moion graph and subscribe to a float parameter to allow the motion graph elements to control when the bob occurs and the bob rate. Without this, the bob occurs whenever the character is grounded, and the bob rate is based on movement speed.

    Inspector

    HeadBob

    Properties

    Name Type Description
    Horizontal Bob Range Float The maximum position offset along the x-axis in either direction.
    Vertical Bob Range Float The maximum position offset along the y-axis in either direction.
    Bob Curve AnimationCurve The curve over one step cycle for the weapon bob.
    Bob Interval Param Key FloatParameter The name of a float parameter on the character motion graph that sets the bob interval distance.
    (Fallback) Bob Interval Float The distance travelled for one full bob cycle. If the parameter key above is set then this value will only be used if the parameter can not be found.

    See Also

    Additive Transforms

    WeaponBob

    Unity AnimationCurve

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