How do I prevent my character from rotating?

When I test my 2D Platformer Game sometimes I will hit the edge of one of the platformers and my character rotates and because my camera is paired with my character. My camera flips out. How do I fix this?

Hi @Marionette_Master

You shouldn’t parent camera directly to player very often (maybe in some cases…), as this might make it harder for you to control camera movement relative to player. You’ll end up with problems you describe.

Typically, camera follows player, instead of being glued to player character’s hierarchy. This way you can control camera easier.

If you google for “unity make camera follow player” - you’ll get tutorials how to make camera follow player.