|
-
where will it bounce?
I'm making a 3D tennis game, and I'm trying to make a little indicator circle that will appear on the floor of the court at the location where the ball will bounce
my initial height is how high the ball was when it was struck, but here's where it gets tricky
y=360 is the floor of the court, so that y=0 is actually 360 pixels above the court
and I guess if you were to just turn my tennis court sideways temporarily, the z-axis movement (into and out of the screen) would become the x-axis for the purposes of solving for y=0 (y=360...)
I'm pretty sure I can factor out time - at least I'll try it, but at any rate, my fps for the movie is 46, and I've got the gravity at 1, which decrements (increases because of flash's inverted y-characteristics) the height of the ball each frame
I don't know how close to actual gravity 46 pixels downward each second would be with a scale of 15pixels = 1inch, but when I play the movie, it appears pretty lifelike
also - the y-velocity would be something around -20 to -30, depending on the z-velocity of the shot (faster = lower b.ymov to keep the ball in bounds)
just for approximation's sake, a y-velocity of 25 would correlate to a z-velocity of around 180 or so
At any rate, I'm not familiar enough with physics yet to know how to do a quick&dirty flash version of the projectile/parabola thingie so I know where to have flash put the circle on the ground
can anyone help me out with this? I'd really appreciate it!!!
Last edited by Seanx; 01-15-2007 at 01:21 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|