My goal is to make a free-flying space dogfighting sim (see my other post: ‘How to Handle Collision Handling (conceptual question)’).
I need to put indicators on the HUD for targets, waypoints, etc. The indicator will be a constant size onscreen, but its position will follow the target’s location such that there is a line-of-sight from the camera through the indicator to the target. It will look like the indicator is on top of the target.
Currently, I am implementing this using an OnscreenImage, setting its position manually every frame according to values calculated from the target’s position. This works properly, and it looks fairly good, but it’s a little jittery, or laggy you might say. I assume this is due to the fact I am going through the task manager rather than including it in the scene graph.
Does anyone know a better way to implement this? I considered using billboards. They would need to be resized every frame, though, and it seems like that would cause just as much of a problem.
Thanks in advance.