If this school computer wasn't a major peice of **** I'd probably say awesome although this looks intersting nice work from what I see, left me going huh...
It slides down probably because you didn't made it's speed go 0 when it's like from -0.2 to 0.2 when we can't see that much of the motion and the surface is horizontal.
I'm thinking, since I don't know exactly how you programmed it, but as it bounces less, gravity has more of an impact. So if you're resetting the ball's position statically, then eventually it will slide through. Perhaps if instead of resetting it to a position, find the difference between the bottom of the ball and the top of the pad, and add that to the ball's x.
Comments
POPAROCKA Says:
If this school computer wasn't a major peice of **** I'd probably say awesome although this looks intersting
nice work from what I see, left me going huh...
Shadow Dinosaur Says:
The movement, Looks good!
Zielak Says:
It slides down probably because you didn't made it's speed go 0 when it's like from -0.2 to 0.2 when we can't see that much of the motion and the surface is horizontal.
White Wing Demon Says:
I'm thinking, since I don't know exactly how you programmed it, but as it bounces less, gravity has more of an impact. So if you're resetting the ball's position statically, then eventually it will slide through. Perhaps if instead of resetting it to a position, find the difference between the bottom of the ball and the top of the pad, and add that to the ball's x.
Just an idea.
Pal X Says:
The ball's speed never reaches zero. You should make that it can reach absolute zero and then from there cancel the gravity force.
Kinda something like this:
if (ball.speed = 0)
{
ball.gravity = 0
}
I don't remember how to work with variables anymore but I think it was something like that.