Problem with collisions

monkeedmonkeed Member Posts: 22
edited April 2012 in Working with GS (Mac)
I'm making a mini golf type game. I'm having some issues with collisions on the walls.
Basically what happens is when the ball hits the wall at a narrow angle and the ball is moving slowing, the ball slides along the wall instead of bouncing off.

I've tried various restitution settings for both the wall and the ball, but I've had no luck. Any ideas?

Best Answer

  • tenrdrmertenrdrmer Posts: 9,934
    Accepted Answer
    thats one of the things with the physics. sometimes if the collision angle is to small it doesn't bounce off at all. Look into the block breaker demo in GS. They have some rules in there to force the ball away from the edge when it gets stuck like that but honestly im not sure if it will work for your style game. It should give you some ideas for a workaround though.

    Good Luck

Answers

Sign In or Register to comment.