Car collision problem

hello I use the car tutorial from unity to build my game, the problem is that when the car collided with a trigger object she lost her balance as if she was off his centerofmass

here is the script of the trigger

var bonus: gameobject;

OnTriggerEnter function (hit: Collider) {

if (hit.gameObject.tag == "Car")
{

bonus.active = false;
print ("collision done");
}

}

Here’s the car script

http://www.text-upload.com/read.php?id=159084&c=7301955

Thanks for any help :slight_smile:

Switch “OnTriggerEnter” and “function” around.

i solved this, i just move SetupCenterOfMass(); from Start() to FixedUpdate(), thanks god for helping me :slight_smile: thank you rab236 for your comment too :slight_smile: