![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Weexer |
I am working on bullets for my game, bullets detect colliding object with raycast2d, but sometimes it just gets broken. For example: if player moves in exact moment bullet is about to hit player, bullet just clips through him. Right now, my in game turret is shooting towards player standing in the middle of the room, and EVERY bullet clips through him, but i I move, bullets hit me. It’s probably something with bullet travelling so fast that in one frame, raycast is out of range, but in second frame it’s already inside player, so it doesn’t detect collision, I don’t want to make bullet slower, or make raycast longer, how do I fix that?