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.

Newcomers DBPro Corner / Problems with Set Camera to Follow

Author
Message
Jim England
18
Years of Service
User Offline
Joined: 4th Apr 2006
Location:
Posted: 4th Apr 2006 11:19
I have been searching the forums for a while trying to figure out how to fix this problem.

For some reason, my camera works fine with following an object except on two conditions. When the Y angle of the object is either 90 or -90 degrees, the camera wigs out and points in the opposite direction.

My code is shown below.

The y angle is negative because of the way the 3D object I'm using is. I want to figure out why it isn't working for 90 degrees or -90 degrees, any help would be appreciated.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 4th Apr 2006 18:10 Edited at: 4th Apr 2006 18:10
You need to put the source inside the code brackets.

I think that I have seen this happen in one of my own programs anyway. You will probably have to manually wing it the other way, which will not be noticable if you do it before the sync, or just skip those angles by adding 1 to them.

Login to post a reply

Server time is: 2024-11-27 22:48:29
Your offset time is: 2024-11-27 22:48:29