- Home /
Making a Nav Ball
I'm making a space game and want to have a Nav ball. what I mean is that as I rotate the camera on all three axis, that ball stays un-rotated, and therefore gives the player an Idea of what their rotation is in world space. Is there a way to make this appear on a GUI or a more effective way to go about this altogether? any help is appreciated.
Can't you just make a sphere a child of the camera, then add a script to the sphere so that it always has (0,0,0) rotation in world space? You can pull it in close to the camera so that it always stays in front of the rest of the scene.
I was thinking of something like that. I suppose if it's close enough, nothing will be able to pass in front of it....
If you are really concerned about stuff passing in front of the ball, you could render it with a separate camera. Set the depth higher than your main camera, and it will be drawn in front.
Your answer
Follow this Question
Related Questions
GUIUtility.RotateAroundPivot isn't working 3 Answers
Displaying Z Rotation through script 1 Answer
Scripted rotation is inverted- GUI HUD. 0 Answers
Rotating GUI Texture By Angle 2 Answers
Draw a rotated image on GUI 1 Answer