ProceduralMeleeSprintHandler MonoBehaviour
Overview
The ProceduralMeleeSprintHandler behaviour is attached to a melee weapon to model different sprinting mechanics. This version uses procedural animation to move the firearm into a sprint pose and add an additive transform bob effect.
Inspector

Properties
Motion Graph
| Name |
Type |
Description |
| Min Speed |
Float |
The minimum speed the character must be moving for the sprint animation to play. |
| Sprint Input Param Key |
String |
(Required) The switch parameter on the motion graph which is set by the input handler to tell the character when to sprint. |
| Is Sprinting Param Key |
String |
(Required) A switch parameter on the motion graph which the graph sets when the character is sprinting. |
| Can Sprint Param Key |
String |
(Optional) A switch parameter on the motion graph which tells the character if it can sprint or not. |
Animation
| Name |
Type |
Description |
| In Time |
Float |
The time taken to blend into the sprint animation. |
| Out Time |
Float |
The time taken to blend out of the sprint animation to idle. |
| Sprint Origin Pos |
Vector |
The neutral weapon / item position in sprint pose before bob is applied. |
| Sprint Origin Rot |
Vector |
The neutral weapon / item rotation in sprint pose before bob is applied. |
| Sprint Offset |
Vector |
The peak position offset of the step cycle on the z and y axes (z does not change). |
| Sprint Rotation |
Vector |
The peak rotation of the step cycle on each axis. |
| Offset Range |
Vector |
A position offset range either side of the sprint offset that will be randomised with each step to add variety. |
| Rotation Range |
Vector |
A rotation offset range either side of the sprint sprint that will be randomised with each step to add variety. |
| Rotation Desync |
Float |
The offset in terms of one full step cycle (left and right) for the timing of the rotation. Positive means after the position, Negative means before. |
| Full Strength Speed |
Float |
The speed at which the full sprint animation strength is reached. This fades out the rotation aspect as the character slows down. |
Melee Weapon
| Name |
Type |
Description |
| Min Attack Time |
Float |
The minimum amount of time the sprint animation will be paused after an attack. |
| Min Block Time |
Float |
The minimum amount of time the sprint animation will be paused when blocking (prevents tapping block). |
See Also
Melee Weapons
The Motion Graph
Additive Transforms & Effects