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 / A math question

Author
Message
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 24th Dec 2003 13:44
What can I calculate with sin and cos?

if I = 1 then I = 1 else I = 0
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 24th Dec 2003 14:12
Umm, did you ever do high school maths? well, if you're asking, i think no...

I can't really explain it cos i can't put pics on the net, but if you email me, i'll send you some pictures that will fully explain it.

@DBoy780: I though the 286 was still a hot machine...

My game course has interupted my Alienware compo. No more sweet ass comp for me. Plus I have no more webspace.
Turoid
20
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 24th Dec 2003 16:46
my mail: darkbasicgast@yahoo.com

if I = 1 then I = 1 else I = 0
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Dec 2003 18:00
angles

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 24th Dec 2003 21:47
Here is an example of SIN, so that the camera is always behind an object (I use this in a race game):

AngleY# = object angle Y(10)
CameraZ# = Object Position Z(10) - sin(wrapvalue(AngleY#+90))*50
CameraX# = Object Position X(10) - sin(wrapvalue(AngleY#))*50
CameraY# = Get Ground Height(1,CameraX#,CameraZ#)+30

(This may be different in some other programs)

Let me explain this:
The SIN calculates where the camera should be, and the * 50 puts the camera 50 units behind the vehicle, I prefer math instead of the build in newxvalue (etc) commands.


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 24th Dec 2003 22:55
yeah I use cos sin and tan alot in high schoole IT is so easy on those TI-83 calculators. anyway they are great for figuring out angles and sides.

Guns dont kill people, death kills people.
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 24th Dec 2003 22:56 Edited at: 24th Dec 2003 22:57
whoops I spelled school with an e at the end shows how great my high school is. lol.

Guns dont kill people, death kills people.

Login to post a reply

Server time is: 2024-09-21 14:50:29
Your offset time is: 2024-09-21 14:50:29