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 / Trajectory math help

Author
Message
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 3rd Oct 2008 05:20
Hi, i wanted to know what formula i could use to plot a trajectory. Wouldn't it be something like a parabola? I know little on the subject so help would be appreciated.

Your signature has been erased by a mod
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 3rd Oct 2008 09:08
Displacement=.5*acceleration*time^2 + Initial Velocity*Time+initial displacement.

Split it into x and y and you are good.

Hint:
X=r*cos(theta)
y=r*sin(theta)

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Oct 2008 09:36
x = v*cos(a)*t
y = v*sin(a)*t - ½gt²

v = velocity
a = angle
t = time
g = gravity


Did you want this in only 2D or 3D as well? My particle tutorial covers the equations and uses them in 3D. http://zimnox.com/?page=dbTutorials


Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 6th Oct 2008 00:51 Edited at: 6th Oct 2008 01:10
@ bn2 - um, mind re stating that in a way that someone who hasn't done algebra or anything like that could understand and that would be good to go.

@Phalex - just 2d for now.

[edit] Never mind everyone, i got it now. Phalex's tutorial was big help. thanks.

Your signature has been erased by a mod

Login to post a reply

Server time is: 2025-06-07 08:22:31
Your offset time is: 2025-06-07 08:22:31