Quantcast
Channel: Answers by "felixwcf"
Viewing all articles
Browse latest Browse all 27

Answer by felixwcf

$
0
0
How to use OnCollisionEnter: 1. Make sure both of your gameObject has Mesh Collider and Rigidbody, and rigidBody.isKinematic must be FALSE. 2. In one of your gameObject script, just write function OnCollisionEnter(other : Collision) { if(other.gameObject.name == "another_gameObject_name") { print("Hit another_gameObject !"); } }

Viewing all articles
Browse latest Browse all 27

Trending Articles



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