- Home /
Sprite does not rotate with a CircleCollider2D
I am trying to create a simple 2D sprite in unity that is driven by physics.
The sprite is a circular image, and i am adding a RigidBody2D and CircleCollider2D components to it.
When using this sprite in the scene, it does not seem to rotate when hitting other objects (rotation applied to it is VERY SMALL).
FixedAngle is disabled, and i've checked all other settings that seem to be related. When using a
BoxCollider2D, it works as expected.
I am guessing it's somehow related to the fact that the circle collider calculates a very small hit angle since it is round and therefore the rotation applied is extremely small, but i am not sure that's what's happening.
Check the physic material. Friction, especially. Also, your object's mass and the force applied to it.
I will check the material. Regarding force - what should i check? The force should be applied by the physics system internally, i am not adding any forces myself.
Answer by Nimrod Harel · Jun 11, 2014 at 09:32 AM
Check out this example: https://drive.google.com/file/d/0B6fKqB7hUNs7aTd2VXRUcXJMcTg/edit?usp=sharing
hope it helps