Hi, I made a scene with walls and a character and animation to move around, everything is fine except the character keeps turn around himself whenever he touches the walls (Especially when he touches two walls beside each other)
what could be the problem?!!
Assuming that your character is a Rigidbody, just add rotation constraints. That should fix the problem.
if it isnt a rigidbody add a circle collider or if u cant do that bump up the friction of the material
I tried it and didn’t work… or maybe I couldn’t use it the right way, I’m newbie.
could you explain please how to use rotation constraints?
Select the player in the inspector, go to the Rigidbody component, and select constraints. After that, just enable all three of the checkboxes below rotation constraints. If that still doesn’t work, then maybe your character controller script is the problem.