Objects stick when colliding at low speed

Hi,
Im weeks, a month tops away from releasing my first game ever. A game i have been working on for about twelve weeks now.
I have been reading a lot in the forums during this time and found answers to most of my problems thanks to all of you.
But for the last bug in my game i cant find a working answer in the forums, without starting this post. I have tried everything suggested.

My problem is this; Objects stick when colliding at low speed. And no collision event fires until after the sticking is "done"

I have objects rotating and moving on the screen. Im using physics and these objects are kinematic. Rotation is set by angularVelocity and movement by LinearVelocity to every single object.

I addition to that i have my user controlled object, call it “ball”. This is of type dynamic and therefore affected by gravity.

Movement of the ball was in the beginning controlled with applyLinearImpulse. But after reading about the sticking physics i changed to using applyForce instead. But the bug remains.

I have tried everything in the “Solutions to Common Physics Challenges” but none of the suggested fixes did solve my problem.

After bug testing this problem a lot i have come to the conclusion that; the sticking takes place before any collision event fires on either the objects or the ball.

I have tried using a preCollision listener, both on the objects and on the ball. My plan was to set angular and linear velocity of the objects to 0 on preCollision. But the problem here is that the preCollision event fires after the collision began event and therefor doesn’t work in this case either. I have read that this is a common problem?

The shape of the ball should be a pentagon shape, setup in clockwise order. But to much sticking takes place so for now it is a radius. The sticking still occurs but not as often (placebo?).

I have also tried the unofficial physics.setMKS( “velocityThreshold”, 0), but that didnt change anything.

I hope someone can help me with a workable solution. This is the last thing remaining before i can release my game. And i really want to release my game soon :slight_smile:

Plz help!
[import]uid: 126729 topic_id: 26759 reply_id: 326759[/import]

Is my post visible on the forum? I have noticed that I only see the post when Im signed in. So i guess no one can see the post?

Plz reply so I know if it is a bug or that it infact is visible. Really need help on the topic so it is important that the post can be read :slight_smile: [import]uid: 126729 topic_id: 26759 reply_id: 108609[/import]

Hey there,

Putting up a plug and play sample would be really useful :slight_smile:

As to your post, it’s visible - I’m not sure why you can only see it when signed in exactly but yeah, it’s visible to all signed in users. (I can’t speak for those not signed in but they wont be able to post answers anyway ;))

Peach [import]uid: 52491 topic_id: 26759 reply_id: 108618[/import]