sanou

12-31-2002, 03:41 AM

hi all

i was wondering if anyone knew of a basic outline of steps to take when trying to animate a ball bouncing.

here's what i've come up with

*note i'm just working with velocity and acceleration in y direction right now...

get ball's yposition

if ball has been detected to hit "ground"

get the ball's velocity right when it hits ground

calculate current kinetic energy (k=1/2 mv^2)

decrease kinetic energy by a set value

recalculate velocity using new kinetic energy value

change velocity vector so it bounces up now

i'm working with 3dfa right now and i haven't been concerned with dealing with an upper limit (how high should the ball bounce before it comes back down)

can someone tell me if i'm on the right track? or if i'm totally off...

sanou

i was wondering if anyone knew of a basic outline of steps to take when trying to animate a ball bouncing.

here's what i've come up with

*note i'm just working with velocity and acceleration in y direction right now...

get ball's yposition

if ball has been detected to hit "ground"

get the ball's velocity right when it hits ground

calculate current kinetic energy (k=1/2 mv^2)

decrease kinetic energy by a set value

recalculate velocity using new kinetic energy value

change velocity vector so it bounces up now

i'm working with 3dfa right now and i haven't been concerned with dealing with an upper limit (how high should the ball bounce before it comes back down)

can someone tell me if i'm on the right track? or if i'm totally off...

sanou