3d Co-ords into 2d Co-ords

Blitz3D Forums/Blitz3D Beginners Area/3d Co-ords into 2d Co-ords

This question must have been asked before but my searches are yielding too many results of unrelated topics, sorry :/

I'm trying to calculate the screen X/Y position of an entity. It's for a bullet firing routine, i'd like to trace a line from the old position to the new position so it appears like a tracer, but I cant find a way to translate the 3D co-ords into screen co-ordinates for use with the draw commands.

Would anyone be able to help me please?

I believe the Commands you are looking for are CameraProject(), ProjectedX() and ProjectedY(). Look in the Manual for descriptions.

Regards,
Eric

Thank you very much :) Just what I needed.