When To Use Collisions vs Just Damage In Range?

I’ve noticed in other projects people will add a trigger collider on the area damage particle effect or on the weapon then detect if a collision occurred to cause the damage. In this class we have been just dealing the damage programmatically, assuming the weapon/particle effect hit.

Seems to me it’d be better to do the collider method so that visually if theres a hit there’s damage, and if no contact/hit then no damage. Just wondering the reasoning for doing it the other way?

Thanks!

I actually am trying to figure out how to add a range to when my spiders cause damage. It seems when the attack starts, no matter how far I get from my spiders, they seem to still do damage to me, even when I’m out of range and the attack doesn’t even look like it hit.

Privacy & Terms