Quantcast
Channel: Questions in topic: "physics 2d"
Viewing all articles
Browse latest Browse all 132

Physics.OverlapSphere not working

$
0
0
if (isactive == true) { ParticleManager.instance.PlayPlarticles(1, 0.2f, Color.yellow, 1f, transform.position); explodetime--; if (explodetime == 0) { Collider[] hitColliders = Physics.OverlapSphere(transform.position, exploderadius); for (int i = 0; i < hitColliders.Length; i++) { Debug.Log(hitColliders[i].name); hitColliders[i].SendMessage("Damage", 10); } Destroy(gameObject); } } it doesnt seem to work, no names are displayed in log and no damage is made.

Viewing all articles
Browse latest Browse all 132

Trending Articles



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