Question by
SuperRaed · Aug 25, 2015 at 02:00 PM ·
physics2dtorquepivot-point
Why does GetComponent ().AddTorque ignore the pivot-point
I am trying to add torque to a sprite which has a pivot point at it's bottom, but it ignores it and keeps rotation it from it's center. why is this happening and how can I fix it?
Comment
Best Answer
Answer by Foulcloud · Aug 25, 2015 at 06:04 PM
Rigidbody forces will be applied to the center of the collider(s). To override this, set rigidbody.centerOfMass to the position you want. You will need to do this once only on initializing the object.