I have a game where I move my mouse cursor as a crosshair to target enemies, the problem is how to implement :
1. my bullets direction in 3D world
2. the best way to do collison detection of my bullets.
Can somebody give me a good idea or article where I can read ??
make a bullet struct/class/whatever, which has 2 3D vectors (one for position, one for velocity). to move it, add the velocity vector to the position one every frame. for collision detection, check if the line between the bullet''s position and it''s next position intersects anything else.