physics - add body question

Hello,

If you add a body to a square object, that's straight forward.

But what if I have an object that stretches and contracts. I want to be able to hittest on it when it's long, and when it's short.

Is there any way to make a physics body contract and stretch with a graphic sprite like a worm?

Would you have to add a sprite event listener and then remove and re add the body each frame?

Thanks

Tom

views:1536 update:2011/9/26 8:07:09
corona forums © 2003-2011