I am making an isometric game in Unity. Im using a 3d cube as an agent for my 2d sprite. I have set up animations so that the sprite turn in the direction it is walking, however the cube is not walking in one axis at a time. Instead the cube moves in both the x and z axis, this messes up my animations. How am i suppose to contrain the cube to only walk one axis at a time so that the animations turn out correctly.
Asked
Active
Viewed 173 times
1 Answers
0
If your cube has a Rigidbody attached, you can check the axis you want to freeze under Rigidbody
> Constraints
> Freeze Rotation
.

Andrea
- 6,032
- 2
- 28
- 55
-
I see. Sorry if I can't be of further help. – Andrea Feb 07 '18 at 10:30