This does not work unless the rigidbody is actively moving. It is like it is not tested contantly. How can that be done - and how should i fix the problem?
void OnCollisionStay (Collision collision)
{
if(collision.rigidbody.mass > 3f)
Destroy (gameObject);
}
↧