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.

3 Dimensional Chat / set camera to follow - problems when rotating object

Author
Message
bigbrother 2000
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: UK
Posted: 25th Feb 2004 13:39
hi,

i have used the set camera to follow command before, although i now wish to use it for a different model, which is bigger, so i have adjusted the hieght and distance values.

it begins fine with the camera following behind the object, although when i turn the object 180 degrees the camera does not stay behind the object but faces the object front facing, until you turn it back 180 so it is now facing away from the camera, does anyone know how i can get the camera to remain behind the object at all times?



thanks
bigbrother 2000
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: UK
Posted: 26th Feb 2004 00:20
i've made it a bit better but its not entirely right

by changing the if left/right key turn object left/right to the code below the object now rotates left and right with the camera remaining behind the object, although when i pivot the object up and down the camera does not stay behind the object



anyone any ideas pleeeeeease
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 26th Feb 2004 00:37
I'm afraid the SET CAMERA TO FOLLOW command is not really desgined for free-flight type games. It is more designed for FPS games where x rotation is always 0.

You will have to write your own camera follow code.

Boo!
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 26th Feb 2004 15:19
That seems like a lot of work when all you need to do is maintain a variable that you update at the same time that you use turn object left/right.
--
TAZ

Login to post a reply

Server time is: 2025-06-28 04:34:01
Your offset time is: 2025-06-28 04:34:01