Question by
rigamonk2 · Jan 04, 2021 at 10:17 PM ·
2d game2d animation
2D Character rotates on collision
My player object contains a CapsuleCollider2D and a Rigidbody2D. When it (the player) hits another collision object, the whole animation will rotate. Attached a couple of images (hopefully) illustrating the problem along with my collider settings. I've tried setting breakpoints at various parts of the character and animation controller, and I receive no transform movement messages (unless I'm stepping over it...)
I am looking to keep my character in a normal state when it bumps into a collider, not rotate around it. Any help appreciated.
[2]: /storage/temp/173472-capture.png
rotated.png
(400.4 kB)
capture.png
(29.5 kB)
Comment
Fixed...Freeze Rotation = true on the Rigidbody 2D inspector panel did the trick!