Quantcast
Channel: Questions in topic: "mass"
Viewing all articles
Browse latest Browse all 157

Constantly checking OnCollisionStay

$
0
0
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); }

Viewing all articles
Browse latest Browse all 157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>