0

I have a bullet class and sometimes when it have to hit something it doesn't hit it(intersects function doesn't senses when it hits a thing(in my case the zombie) so it pierces through it and i don't know why. Please help me! Thanks

csdaniel
  • 11
  • 3

2 Answers2

0

For bullets I recommend using raycast instead, unless the bullet is big and moves slowly. Otherwise what will often happen is that the bullet moves too far in a frame and can miss the intersection.

pokepetter
  • 1,383
  • 5
  • 8
0

the problem was the collider was too small so i make it bigger and it worked

csdaniel
  • 11
  • 3