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.

DarkBASIC Discussion / Moving along a path

Author
Message
Black Cat XIII
19
Years of Service
User Offline
Joined: 23rd Jan 2006
Location:
Posted: 17th Feb 2006 21:45
How can I move the camera along te path of a circle around my object?

Can i just make a circular path or does it involve equations like z=sqrt(r^2-x^2)

Anybody know? I'm basically trying to get it to where my camera moves in a circular path around my object whenever I move the mouse sideways left or right.

Please help ^_^

Enemy Lasagna
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 17th Feb 2006 22:05 Edited at: 17th Feb 2006 22:14
Sorry if this doesn't help, but this is the best I can do:

Use the newxvalue(), newyvalue(), and the newzvalue() functions to position the camera according to the object, and then point it at the object.

EDIT:

Actually, this should be alot more helpful now that I made an example demo:



I hope it helps


Hippopotomonstrosesquippedaliophobia-Fear of long words

Login to post a reply

Server time is: 2025-05-23 18:44:57
Your offset time is: 2025-05-23 18:44:57