Is the reason the boxes keep flying upwards due to the fact that we're invoking Explosions() continuously (inside Update()...

posted to: Exploding Grenades
Is the reason the boxes keep flying upwards due to the fact that we're invoking Explosions() continuously (inside Update()), therefore it's checking for the OverlapSphere collisions again and again instead of just once? Also, does the grenade also fly up because it's being caught in the OverlapSphere check too?
  • Jonathan Gonzalez(jgonzalez) replied
    Yes to your first question. Until the object that has the script is destroyed it'll still keep exploding. To your second question, I believe it does although I don't know enough about the physics of it to know for sure. With some modifications to the script and a new layer you could also have the grenade ignore it's own collider for the explosion.