pythonursina

intersects doesn't always work ursina engine


I have a bullet class and sometimes when it has to hit something it misses it so it pierces through it and i don't know why. Please help me! Thanks


Solution

  • 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.