HeadBobSettings
Class in Zigurous.CameraSystem
Inherits from CameraBehaviorSettings<T>
Declaration
[Serializable]
public sealed class HeadBobSettings : CameraBehaviorSettings<HeadBob>Description
Settings for a head bob modifier.
Properties
| amplitude | The amount the head moves up and down. |
| period | The speed of the head bob. This is measured in time, so smaller values create a faster head bob. |
| velocityFactor | The percent of the character's velocity that is factored into the speed of the head bob. |
| minimumVelocity | The minimum amount of velocity required by the character in order for the head bob to take effect. |
| groundLayers | The layer(s) to raycast against when checking if the character is grounded. Raycasting is only performed for rigidbodies since character controllers have a built-in isGrounded property. |
| onlyGrounded | Only bobs the head while the character is grounded. |
Inherited
Properties
| active | Whether the settings are active on a camera profile. Inactive settings will not display in the editor. |
| enabled | Turns on or off the settings behavior. Enabled behaviors are updated every frame. |
| isActiveAndEnabled | Whether the settings are active and enabled. |