-
Notifications
You must be signed in to change notification settings - Fork 24
Scripts.AnimController
Wesley Haws edited this page Jan 1, 2017
·
2 revisions
##Scripts - AnimController
###What does this do?
NPC/Player movement animations. This is now deprecated for NPCs. This is only valid for player objects. Will play movement animations based on Input by the player.
###Who/What is this for?
Player objects only. Anyway enable "Player Controller".
###Setup
Example Setup:
Parameter | Type | Description |
---|---|---|
Player Controller | bool | Legacy. Always enable. Was originally to decide if this was an NPC or a player. |
Calm Speed | float | Legacy. Put whatever you want. Originally used to see if the NPC was walking. |
Suspicious Speed | float | Legacy. Put whatever you want. Originally used to see if NPC was sneaking. |
Hostile Speed | float | Legacy. Put whatever you want. Originally used to see if NPC was hostile. |
Debug Speed | bool | For debugging only. Logs current speed of object. |
Debug Direction | bool | For debugging only. Logs current movement direction. |
Debug States | bool | For debugging only. Logs current object state. (Mecanim) |
Debug Animation Speed | bool | For debugging only. Logs current animation speed. |
Animators | Animator List | Mecanim Animator List. What animators to set parameters for. They must all have the same parameters. |
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager