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.

Author
Message
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 26th Jul 2010 05:23
I am working on a function that will point the camera to a position so that when pointing to a position the camera can go up side down which the built in command can not do. So far I have the following code but I can't get it to work correctly any suggestions?

Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 26th Jul 2010 06:31
Maybe I'm missing your point, but this combination will do what I think you are trying to do:


The fastest code is the code never written.
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 26th Jul 2010 08:44
Take this code for an example when you move the mouse up and camera angle of x goes past 90 instead of going to 91 and above the camera angle x starts to de-increment and go bellow 90.

Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 26th Jul 2010 15:31
Ah, you are wanting a true orbit past the Y-axis..... I've been trying to do that for a long time now with no luck. GOOD LUCK.

The fastest code is the code never written.
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 27th Jul 2010 05:41
I found an alternative solution for my problem simply by moving the camera back after rotating it.

Login to post a reply

Server time is: 2026-07-25 07:01:28
Your offset time is: 2026-07-25 07:01:28