Physics problem

I have a dynamic object (ball) that drops on a static object.

So far so good, the ball bounces on the static object.

Now i’m rotating the static object, and the ball shows weird ‘sticky’ behaviour. I sticks to the static object, and eventually it catapults of the object.

So the only thing i change is making a static object rotate and the physics change totally.

What am i doing wrong here?

[import]uid: 50459 topic_id: 10517 reply_id: 310517[/import]

Had this problem too. There’s another thread somewhere with the answer, but here’s the short version:

Create a smaller static object that you will position behind the object you want to rotate. Make the rotating object dynamic and weld it to the static object with a pivot joint. Use the joint motor to rotate the dynamic object. Now you have a dynamic object (ball) colliding with a rotating dynamic object and no more sticky problem. [import]uid: 40137 topic_id: 10517 reply_id: 38326[/import]

Thanks for the solution. I’m having the same problem. Do you know if this bug is recognized by Ansca? [import]uid: 49205 topic_id: 10517 reply_id: 38349[/import]

Thanks Mathias,

Seems that the same problem exists when you move an object with object.x = object.x + 1

The dynamic object then sticks on the side.

I wonder if this is a Corona bug?

[import]uid: 50459 topic_id: 10517 reply_id: 38430[/import]

You could try changing the bodyType to kinematic prior to rotating and the switch it back to dynamic after rotating.

Also, depending on if it works in your scenario, using ApplyTorque to rotate it instead. [import]uid: 29520 topic_id: 10517 reply_id: 38441[/import]