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 / Projectile Motion Problem [Help]

Author
Message
mountainman
22
Years of Service
User Offline
Joined: 16th Oct 2002
Location:
Posted: 16th Oct 2002 22:26
Help

Im having a hard time getting this code to work, if anyone knows what Im doing worng, please let me know. I think it has do to with the time...



Thanks for the physics post.

Rob.
Milamber
22
Years of Service
User Offline
Joined: 27th Sep 2002
Location: Australia
Posted: 19th Oct 2002 16:40
Why not just, every frame, move the ball a certain amount x, and add a certain amount to the amount the ball gets moved y?
eg:


System Specs: AMD Athlon 1700+ XP, GA-7VRX motherboard, 128MB DDR RAM, GeForce2 MX400 64MB VRAM
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Oct 2002 18:06
this line
ballx# = vix# * time# + 0.5 * 0 * sqrt(time#)
can become
ballx# = vix# * time#
as the rest of it will always be zero, as there is zero acceleration in the x plane.

and also the equation you seem to be using is S=UT+0.5AT^2
So the other line should in fact read
bally# = viy# * time# + 0.5 * -10 * (time#)^2

hope this is helpfull.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp

Login to post a reply

Server time is: 2024-11-23 18:12:56
Your offset time is: 2024-11-23 18:12:56