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 Professional Discussion / Can't get curveangle working correctly

Author
Message
lcfcfan
23
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 7th Oct 2003 17:03
I do not have the code with me as i don't have net access at home yet cos i moved house but i have a camera that i want to slowly rotate right but i enter one for speed but it moves the camera from 0 to 180 in one movement when i want it to move gradually anyone know why?

The code is something like this.



can someone tell me also how i can get the camera to rotate around an object i have benn trying to figure this out for a few days but can't seem to get it right?

nuclear glory
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 7th Oct 2003 17:18 Edited at: 7th Oct 2003 17:20
In regards to your second question, to make the camera rotate around an object try something like:



You may have to alternate the cos/sin commands if you get bad results. Increase the move value to increase the speed of travel around the object.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Oct 2003 20:41
@lcfcfan, the code is doing exactly what you tell it to do ... the last parameter is the number of steps you want it to take.

lcfcfan
23
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 8th Oct 2003 17:32
oh right i think i get what you are saying, if i put 30 instead of one it will move 30 times till it gets to 180 instead of just moving it to 180 in one movement?

i'll try that out when i get home!

Thanx

lcfcfan
23
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 8th Oct 2003 17:34
@ nuclearglory: Could you show me an example of that with a cube or something please?

Login to post a reply

Server time is: 2026-07-26 05:03:22
Your offset time is: 2026-07-26 05:03:22