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 / Following an object with camera

Author
Message
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 21st Feb 2003 19:05
Could someone give me some advice on how to get the camera to follow an object please? I dont want any source maybe just some pseudo code so I can work it out for myself. The tutorials over at the create section create a whole new function which is quite difficult if I cant even use the standard code yet, so any help is appreciated. Cheers.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 21st Feb 2003 19:29
Look at the command "SET CAMERA TO FOLLOW"

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 21st Feb 2003 19:31
I did lol but i cant get it working
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 21st Feb 2003 19:44
*bangs head on desk*

What exactly can't you get working about it? You set it to follow an objects x,y and z coordinates (i.e. the object you're tracking). Show us some code.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 21st Feb 2003 20:37
Ok. Im trying to make the camera follow the cube. Here goes..

Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 21st Feb 2003 20:56
Look at your code carefully - you're telling the camera to follow a fixed point in 3D space. Your object moves, but the camera isn't being told to follow it.

Try this code:



Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 21st Feb 2003 21:05
That makes sense Rich, thanks.
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 21st Feb 2003 21:05
Quote: "
*bangs head on desk*
"


Ouch!

Ogres have layers.

Login to post a reply

Server time is: 2024-09-19 17:48:09
Your offset time is: 2024-09-19 17:48:09