Newtonian equations of motion!!
well its an interesting coding style!
by the way, just a tip, u might want to rethink the physics ..
ppc=0.01
at=at-.7
a=a*.1+gr*3+at*.08
v1=v1*ppc+a
hf=(h1+v1)
h1=hf+v1
y=hf-1647
....is unclear and hugely redundant.
Ive changed it to
y=y+dy
dy=dy+.3 'gravity effect
if thrust up dy=dy - 2
runs smoother, and drops better!
Last edited by colin9876 : 01-04-2008 at 06:57 AM.
|