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.