How do I prevent Circle Collider 2D from rotating when gravity is in effect?
I'm trying to make a 2D character with a box collider for the body and a circle collider for the lower body. I've been tinkering with the circle collider to find a way to prevent it from rotating my 2D sprite whenever I move the character horizontally but to no avail.
Comment
Answer by borshlite · Sep 16, 2020 at 01:46 AM
Assuming you have a Rigidbody 2D Component attached, you need to check the Freeze Rotation on Z under the Constraints section. I know this is pretty old, but had the same problem and came across this unanswered question when trying to figure the same thing out. I was attempting to copy the Robot Boy prefab that comes with the Standard Assets package.