- Home /
Question by
telex · Jul 08, 2014 at 01:03 AM ·
c#rigidbody2dcenterofmass
Will centerOfMass rotate my Rigidbody2D with gravity.
My Rigidbody2D is falling with gravity as set in the inspector with Mass 0.5, Linear Drag 2 and Gravity Scale 0.5. I'm trying to make the object fall naturally with the heavier front end falling head first, my script is setup something like this;
public Vector2 centerofmass = new Vector2 (-0.75f,0f);
void Start () { rigidbody2D.centerOfMass = centerofmass; }
Changing centerOfMass doesn't appear to have the required effect, have I missed something.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613153507im_/https://answers.unity.com/themes/thub/images/avi.jpg)