Hey, this isn't easy to explain so bare with me...
If you've played any flight or space sims that allow you to target an objective or player, you hopefully will know what i mean as many have a feature similar to this.
I want to display a arrow on the edge of the screen pointing in the direction the player should turn to get the target into the field of view (the quickest direction).
For example, if the target is outside of the field of view to the right there would be an arrow on the right hand side of the screen.
If the target is outside and to the left, but slightly up too.. the arrow would be on the left side of the screen but near the top.
I've not had much luck getting this to work yet, and can't see anything obvious in the code archieves (if there is one please point it out :))
Does anyone have any ideas or examples on how to do this? Thanks!
If you've played any flight or space sims that allow you to target an objective or player, you hopefully will know what i mean as many have a feature similar to this.
I want to display a arrow on the edge of the screen pointing in the direction the player should turn to get the target into the field of view (the quickest direction).
For example, if the target is outside of the field of view to the right there would be an arrow on the right hand side of the screen.
If the target is outside and to the left, but slightly up too.. the arrow would be on the left side of the screen but near the top.
I've not had much luck getting this to work yet, and can't see anything obvious in the code archieves (if there is one please point it out :))
Does anyone have any ideas or examples on how to do this? Thanks!