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 / How do you use curveangle?

Author
Message
GMX
19
Years of Service
User Offline
Joined: 19th Sep 2005
Location: In front of my monitor
Posted: 13th Dec 2005 23:19
Just curious how you use functions like curveangle. Is it like this (assuming that you want the y angle of object 1 to go from whatever it is at to 0):


rotate object 1,0,curveangle(0,object angle y(1),5),0


or like this:


curveangle(0,object angle y(1),5),0

DB can do 2d and 3d...so:

DB = 3d <> 2d = DB...huh?
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 14th Dec 2005 00:05
curveangle can be used to change an angle smoothly. Say you wanted to yrotate object 1 to go from 0 to 180, but very smoothly, this is how:

yrotate object 1,curveangle(180,object angle y(1),20)

the first parameter is the angle it's heading for, the second parameter is the angle that it is at, the third parameter is it's smoothness, the higher this goes, the smoother, but yet slower.

The curvevalue is just the same but can be used for anything else, such as coordinates.

Login to post a reply

Server time is: 2024-09-24 11:23:57
Your offset time is: 2024-09-24 11:23:57