Hello. I’ve made a swimming animation for my character model. It’s basically a normal model rotated in Y axis (so it looks like it’s laying on the ground) and it moves his hands and legs. It’s supposed to start playing when the player reaches the water level and this part works almost fine.
The problem is that whenever my player enters water he’s still in standing rotation but he’s moving his legs and arms like it is supposed to be in animation.
How do I make him rotate properly? When I’ve used the transform.rotation.z = -90; (if in water) then the player was upside down and after leaving the water the model wasn’t rotating anymore (although the camera was).