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 / Problem with camera code

Author
Message
Dmas_Zero
20
Years of Service
User Offline
Joined: 9th Feb 2004
Location:
Posted: 13th Feb 2004 09:15
I'm trying to write a code that make the camera follow the player as in 3rd person games.
the problem is that i don't know how to make the camera turn around with the player. i know how to make the camera follow the x,y,z positions of the playr. here is my code:



any ideas?
walaber
20
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 13th Feb 2004 13:01
i believe there is a command called "set camera to follow object" or something similar. look for it in the docs.

if you want to make your own function to do this, I can explain it, but it uses some trig.

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia Ti4200 AGP 8x 128MB
Dmas_Zero
20
Years of Service
User Offline
Joined: 9th Feb 2004
Location:
Posted: 13th Feb 2004 13:28
thank you, i tried to use the "set camera to follow object" but i have no idea how to use it.
maybe you can explain to me?
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 15th Feb 2004 05:17
Do a search on the forums. A few months back someone - I think it was Indi - posted example code for a freeflight 3d person camera.

Philip

What do you mean, bears aren't supposed to wear hats and a tie? P1.3ghz / 384 megs / GeForce MX 5200 128meg / WinXP home

Login to post a reply

Server time is: 2024-09-21 20:53:08
Your offset time is: 2024-09-21 20:53:08