API reference
MotionController
Trigger recoil, breath sway and local-position changes.
Source: src/Player/MotionController.cs.
| Method | Behaviour |
|---|---|
void BreathSwayActivation(bool activate) | Enable or disable the configured breath-sway behaviour. |
void Recoil() | Trigger the configured recoil motion. |
void ToAimPosition() | Interpolate towards the configured local aim position. |
void ToRunPosition() | Interpolate towards the configured local run position. |
void ToHipPosition() | Return towards the original local position stored during Awake. |
These are instance methods. Assign your camera or weapon MotionController reference and configure the corresponding Inspector sections before calling them. See Motion Controller setup.