- Home /
Prevent a collider from affecting the rotation of a sprite,Prevent a collider from affecting players's rotation
I want to make a mobile Game 2D and I Need to have four colliders on the sides of the screen to keep the sprite inside the world, the problem is that the player's angular velocity is affected when he collides with the sides of the screen. Is there a way to avoid That! Thanks in advance for your answers. :)
Comment
Answer by GDGames0302 · Jan 26, 2021 at 01:51 PM
Hi. You should go to the player's rigibody in the inspector, and under constraints, you should activate the ZRotation constraint.