- Home /
Question by
Serge144 · Sep 18, 2020 at 10:06 PM ·
animationrotationanimator controllerplayer movementrotatetowards
Rotate player back to walkable position after being hit.
Basically, my player can be striked by an object, which will make it fly away and spin. (with rigidbody forces and torques). After I check that the player is already in the floor and its velocities are pretty close to 0, I wanted my player (a 4 legged Animal) to start rotating to its normal walkable position. I was thinking about getting the Down vector of the player ( -transfom.up) and slowly rotate it towards Vector.down. This way I know it will be in the proper position to be able to walk again. How can i achieve this? Thanks in advance.
Comment