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.

Dark GDK / 3D Camera Help

Author
Message
Spooter
16
Years of Service
User Offline
Joined: 27th May 2008
Location:
Posted: 10th Apr 2009 15:48 Edited at: 10th Apr 2009 17:49
I am trying to make an object move around a world and he moves like he should. The problem I am having is that when he rotates the camera doesn't rotate reflexively. The first commands I used would rotate the camera correctly but since the location of the camera doesn't move when I rotate, you can see where the camera doesn't look at the object anymore.


ALL the commented stuff I have tried using. The object number is 15. How can I make it so the camera is always looking at his back even when he rotates?

/*================================================*\
| Lead Programmer/Owner===============Anti-Triangle Cult=====|
\*================================================*/
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 10th Apr 2009 19:06
This has been covered a million times before. Set the position and rotation of the camera to that of the object, then move the camera backwards.
Spooter
16
Years of Service
User Offline
Joined: 27th May 2008
Location:
Posted: 11th Apr 2009 01:56 Edited at: 11th Apr 2009 02:12
Thanks...

/*================================================*\
| Lead Programmer/Owner===============Anti-Triangle Cult=====|
\*================================================*/

Login to post a reply

Server time is: 2024-10-06 19:24:34
Your offset time is: 2024-10-06 19:24:34