Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Mouselook + Unlocked HUD objects

Author
Message
Justin Michael
21
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 2nd May 2004 22:11
Im having problems with my HUD.

I need to make the HUD out of objects rather than sprites and I cannot use the Lock Object On (because i need to minipulate these objects) command to sort the following problem (I can explain these reasons if need be but for now that isn't important).

The problem is this, When i rotate the camera (using the basic mouselook wrapvalue etc. and storing the values as cx#,cy# and cz#) the HUD object's (rotated using the same cx#,cy# and cz# and positioned at the same place as the camera and moved 3) rotations are screwed up the bigger the value of cx#,cy#,cz# the more they screw up. For example when facing 180degrees (cy#=180) the objects invert as i look up and down (cx# +/ - ).

Would apreciate any help i can get on this one. I hope you understand the problem because it is quite a hard one to explain, and sorry for the long winded aproach but ive heard that it is better to try to be precise than brief here.

Thanks
[email protected]

Justin Michael

Login to post a reply

Server time is: 2025-05-23 14:14:25
Your offset time is: 2025-05-23 14:14:25