Mail Archives: djgpp/1998/04/28/11:28:40
funkdog32 AT aol DOT com (Funkdog32) wrote:
>Hey all... I have been working on a program much like scorch lately... It is
>going well and the rockets, bombs etc. look like they're being influenced by
>gravity but it just doesn't look quite right. I would love for someone to give
>me a formula for it = )
>Also... any way that I could make a background... (a hill or something) that
>the tanks would sit on? (Basically my main problem is bounds checking to know
>If the bomb hit the artificiall hill)... also how could i take a chunk out of
>the hill when a bomb hits it?
Resolve horizontal and vertical components. ie. horizontal speed stays
constant as no force is acting. and vertical ccomponent is affected bu
gravity ( conbstant acceleration) so use
v = u +a*t (where v final speed; u is intial speed; a is acceration
due to gravity =9.8 on earth; t is time interval)
v^2=u^2+2*a*s ( Where s is distance traveled)
s=u*t+(1/2)*a*(t^2) ( This is probably the most useful one)
I do A-level Physics so if this is not clear e-mail me and I'll try to
do a better explaination.
David.
David Vrabel d DOT vrabel AT n-shropshire DOT ac DOT uk
A poor student (aren't they all) at:
North Shropshire College
Oswestry, Shropshire, UK
- Raw text -