How do you keep a dynamic physics body intact despite colliding with another dynamic object?

I have two physics object, a moving wall and a rotating blade, both of which dynamic physics bodies and obstacles to a dynamic ball object. Both obstacle objects already have some forces applied to them, but I’d like to remain them in the x and y coordinate as pre-determined and keep them from moving when a ball object collides with them. What’s the best way to achieve this?

Check out the RagDoll physics demo in the Corona resources.

Also, you can keep ‘static’ objects in place more realistically by making them dynamic and welding them to an off-screen static object. This works well for me.

You may need to increase the physics calculations performed by your engine and you can use physics.setContinuous() to improve things - as described by the rag doll demo.

Sometimes you want to be careful with the density values of your bodies. Too light or too heavy and you can have strange effects, like bodies coming apart. Fine tune this with nothing but patience.

Check out the RagDoll physics demo in the Corona resources.

Also, you can keep ‘static’ objects in place more realistically by making them dynamic and welding them to an off-screen static object. This works well for me.

You may need to increase the physics calculations performed by your engine and you can use physics.setContinuous() to improve things - as described by the rag doll demo.

Sometimes you want to be careful with the density values of your bodies. Too light or too heavy and you can have strange effects, like bodies coming apart. Fine tune this with nothing but patience.