This asset package provides a simple player movement control that provides delegate hooks to aid in player automation.
There are many delegates defined. Some are activated by player movement.
And it is tied to any AnimationHelper component (when non-null). Example, if the player moves left, and faces forward, then the AnimationHelper Strafe animation will be invoked with Left as the movement direction, and Forward as the facing direction.
See the AnimationHelper documentation for more information. You could use the "Walk" animation when the character does not have a strafe animation. It just looks up strafe in the list and uses whatever you configure it for.
When no animation is listed, nothing is done.
The Moving direction used in this documentation are broken down into these 8 general directions: This is most often used to indicate the direction an object is moving, as comparted to its last position.
-
Unknowns Direction - Not initialized or unknown.
-
Not Moving - The object has not moved or Near Zero.
-
Independent of Direction - This is used by animators, to indicate the animation is not specific to a direction at all.
-
Circle - The game has indicated the object is moving in a circle.
-
Forward - The player velocity or is moving between: >= +337.5° (-22.5°) and < +22.5°.
-
Forward to the Right< - The player velocity or is moving between: >= +22.5° and < +67.5°.
-
Right - The player velocity is or moving between: >= +67.5° and < +112.5°.
-
Backward Right - The player velocity is or moving between: >= +112.5° and < +157.5°.
-
Backward - The player velocity or is moving between: >= +157.5° and < +202.5°.
-
Backward Left - The player velocity or is moving between: >= +202.5 < +247.5°.
-
Left - The player velocity or is moving between: >= +247.5° and < +292.5°.
-
Forward Left - The player velocity or is moving between: >= +292.5.0 and < +337.5°
-
Down - The player velocity or is moving down.
-
Up - The player velocity or is moving up.
-
Up Stairs - The player is going up stairs.
-
Down Stairs - The player is going down stairs.
The term Near Zero means when the value is at or less than
- See also
- GamepadMinDeadZone