WeaponBob MonoBehaviour (Deprecated)
Overview
The WeaponBob behaviour is used to move the gun or held item 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 weapon 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

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. |
| Horizontal Angle Range | Float | The maximum rotation offset around the x-axis in either direction. |
| Vertical Angle Range | Float | The maximum rotation offset around the y-axis in either direction. |
| Bob Curve | AnimationCurve | The curve over one step cycle for the weapon bob. |
| (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. |
| (Fallback) Bob Interval | Float | The distance travelled for one full bob cycle. |