On target?

Blitz3D Forums/Blitz3D Programming/On target?

There may be better ways however:

I generally create two spheres

one at the tip of the gun parented to the gun and one which is positioned in the z axis at a distance which lines up with the fixed hud graphic when viewed. This second sphere is parented to the first sphere.

get the co-ordinates for the first sphere and use this as the start position for the bullet. point the bullet towards the second sphere and move it . When it collides with the second sphere delete the bullet.

A bit crude but it works. Obviously entityalpha the spheres as 0.