Collision Quirkiness

Bugs will be moved here once resolved.

Post » Sat Dec 24, 2011 7:21 pm

Hey guys,

As part of my game, a moving sprite set with the behavior of BULLET collides with solid objects (Walls).   In the example below, I have a ball and a couple of walls to illustrate the problem. When the ball hits a straight part of a wall it reacts fine. However when the ball collides where two walls intersect at a 90 degree angle, sometimes the ball seems to speed up and not follow the expected bounce path. Sometimes it will shoot right through another wall.

In the example capx, the ball will move to where you click, so just click where the walls intersect, you will see any combination of the following:

- The ball just speeds up when it should just maintain the same speed or slow down as acceleration is set to a neg number

- The ball will react to one wall first, then "stick" to the perpendicular wall as it continues on its path, when it should bounce off both walls.

http://dl.dropbox.com/u/2129074/CollisionExample.capx

Thanks for the assistance!
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Mon Jan 09, 2012 9:00 am

Your dropbox link is a 404, can you make sure it's in a public folder and post the link again?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Jan 09, 2012 8:02 pm

It's back live, sorry, I removed some files from the account for space and deleted that one too. My solution was just to use Box2d and now the collisions don't have the issue I was experiencing when just using the BULLET and SOLID behaviors.
B
19
S
4
G
5
Posts: 116
Reputation: 4,369


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 7 guests