PDA

View Full Version : how do i make a ball roll off a table and bounce on the ground


bromsburg
02-02-2009, 02:02 PM
while the ball is bouncing, i want to make it come to decrease the height of the bounce before coming to a rest

ottar9919
02-02-2009, 05:15 PM
There are two ways you could do this.

One way is to have the ball move up, say 5 meters, and back down 5 meters. Then make it move up and down 4 meters, and 3 meters, and so on.

The other way is to make a number variable(lets call it X). In a loop, put "ball move up X meters" and "ball move down X meters". After that, put in "variable X decrement by 1". Loop it X amount of times.

Here is an example of both ways:

bsmill04
02-08-2009, 01:05 PM
I would suggest the variable way. Decreasing by 1 instead of adding 5 different up 4 down 4 up 3 down 3.