Question by
SpatialQuotient · Jun 07, 2018 at 04:59 AM ·
c#animationmovementbooldirections
SetBool animation state based on direction object is moving
I am making a VR game where you pick up a little robot. I have made 6 animation states for when it's moving "up" "Down" "Left" "Right" "Forward" or "stopped" I am wondering if there is a way to detect which direction the object is moving in the global space and play the corresponding animation based on that X Y and Z motion. I am looking for a C# solution using Unity 2017.3.0b5. I appreciate anything that would point me in the right direction. (no pun intended)
Comment