Center of mass causing crash!

all of the sudden my editor started crashing when i manually assign the rigidbody center of mass.

In the editor it crash allways. on the build only sometimes.

The dev build log says theres a null reference exception, but it was working before. Is there a known bug about this?

var CenterOfMass : Transform;
CenterOfMass = transform.Find ("CoG").transform;

function Start () {


rigidbody.centerOfMass = CenterOfMass.localPosition;

}

CoG is child of the object holding the script.

Ok i issolated the problem. Its not the Center of mass. It’s the colliders. If i add a collider to my gameObject it causes the crash.

I re instaled unity and still having problems.

Anyone know why this happen?

EDIT: Correction, the crash only happens when i turn on the Interpolate or extrapolate option in the rigidbody.

Ten years later… happens to me too