Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Physics.OverlapSphere won't detect script attached to the Colliders game object

$
0
0
Hi

I've been trying to create a bomb. With help we've managed to find the colliders in the blast area. We are trying to call a function in the DestroyByContact script attached to the Game Object which the collider is on. If that makes sense.

The problem is that the bomb script can't see the DestroyByContact script on the game object it has found. I can't work out why. Can anyone see anything that I'm missing please?


Cheers


Bomb Script

Code (CSharp):
  1. public float explosionRadius = 30;...
Physics.OverlapSphere won't detect script attached to the Colliders game object

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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