Hello.
I'm writing a 3d app that displays a map and there are selectable entities on that map. I've created a sprite that is parented to the camera so that if any of the entities are picked the sprite is displayed in the centre of the screen telling me which one. Hurrah, so far!
The problem is that if I change the pitch, yaw or roll of the camera - ie, I'm tilting the landscape - the sprite buggers off elsewhere. I'm assuming this can be resolved by using entityyaw(), etc, but I'm not entirely sure what's required.
Can anyone give me some simple pointers? (and I don't want to use any third party stuff, good as it is)
Thanks.
Jes.
I'm writing a 3d app that displays a map and there are selectable entities on that map. I've created a sprite that is parented to the camera so that if any of the entities are picked the sprite is displayed in the centre of the screen telling me which one. Hurrah, so far!
The problem is that if I change the pitch, yaw or roll of the camera - ie, I'm tilting the landscape - the sprite buggers off elsewhere. I'm assuming this can be resolved by using entityyaw(), etc, but I'm not entirely sure what's required.
Can anyone give me some simple pointers? (and I don't want to use any third party stuff, good as it is)
Thanks.
Jes.