#Help with code line

1 messages ยท Page 1 of 1 (latest)

forest vigil
#

are they in the correct layer?

#

are you using a for/foreach loop to go through every single collider it hits?

#

does it throw any error or it just doen't work?

hollow thorn
#

could be a bunch of different things

  1. explosionRadius is actually like 0 or something
  2. LayerMask is incorrect
  3. LayerMask is correct but objects aren't on the layer
    etc.
tight swan
#

but explosionRadius is 5f and all of the object are in the correct LayerMask

tight swan
#

i uninstalled and reinstalled the editor and this line works now :/