I'm doing a simple 3d shooter and I'm going to render the bad guys to a circle (radar) top left of the screen. As you turn left and right they will turn around the centre.
Their initial position plus player rotation will update their position correctly on the the radar.
x# = sin(playerRotation) * 20
y# = cos(playerRotation) * 20
SetSpritePosition (mySprite.id, 30 + x#, 30 + y#)
The thing I can't figure out is how to take that point and project it into 2d space in front or behind the player as they player rotates. Any idea how to do this? I assume it's probably a 2d to 3d to 2d projection but I'm just wonder if that's too complicated?