Problem with collisions at high speed

Hello everybody,

I am developing a game based on Game Edition. The game principle is similar to pool (billiard). I experience the following problem: although all the balls are defined as bullets, when hit with a great ammount of force, the balls go through each other.

Of course when the physics.setScale is set to values between 30-40, that works great, but the natural feeling of playing pool is lost, due to the big values of friction.

Checked the sample Corona provides, also there the same problem occurs. The cueball is defined as bullet, the other balls not, and they still go through each other when hit at great force rate.

Anybody ran into the same problem?

Thanks in advance. [import]uid: 4572 topic_id: 2748 reply_id: 302748[/import]

Update: the bodies enter asleep state. When two balls are next to each other, and the first ball is hit with a great amount of force, there’s no reaction time for the second ball to toggle to active state, therefore the first ball goes through the second ball.

theballs[k].isSleepingAllowed = false does not seem to trigger anything, the bodies still enter asleep state after the velocity reaches 0.

Anybody? :)))

[import]uid: 4572 topic_id: 2748 reply_id: 8247[/import]

Just throwing out ideas here… haven’t used physics.

Can you:

a) Find the ball that is going to be in the path of the ball, and wake it up manually?

b) Loop over all balls when the queue ball has force applied to it, and wake them all up manually?

c) Can you set the velocity of a ball to 0.00001 or some tiny number that keeps them awake (>0) but they dont really move?

[import]uid: 8541 topic_id: 2748 reply_id: 8251[/import]

Hello, sanchan91,

for a) i could not find anything in the documentation. I’m trying b) as we speak.

I do not understand however, and that’s a question for the Corona people, why explicitly defining in the body properties table isSleepingAllowed to false does not work.

Will check b) out and see how that works…
Thank you for your ideas. [import]uid: 4572 topic_id: 2748 reply_id: 8254[/import]