Yes, the collision mechanism is incomplete, which is why I’m using the bullet position > 1200. Since you passed that threshold, any bullet will hit.
My next step is to work on collision and physics; maybe I’ll use something like Box2D.
My next step is to work on collision and physics; maybe I’ll use something like Box2D.
Putting aside the politics and all, focusing on the tech- one thing I came across when trying to do my own collision detection was the idea of using the GPU and occlusion queries for pixel-perfect results.
I didn't come up with the technique, but it's super cool, and since you're not taxing the GPU with tons of 3d triangles, it's perhaps a bit more free to do stuff like that.
Nowadays, it’s very rare for a user to download and run a binary.
The interesting part of the collision detection code is here: https://github.com/dakom/not-a-game/blob/main/src/collision/...