Keep objects alive a moving after settling down

Hi There,

I am new to Corona and wonder for the ShapeTumbler sample included with the Corona SDK (inside the physics folder), all the objects and after they settle down or movement stops, they stop moving anymore.

My question, is how to keep the ShapeTumbler objects alive even after the movement stops, as currently they stop moving when the tilting stops.

I hope I am making sense of my question.

Thanks in advance.

George

Hi George,

If you set the object’s isSleepingAllowed property to false (http://docs.coronalabs.com/api/type/Body/isSleepingAllowed.html), it’ll prevent them from sleeping, and they’ll always respond to changes in gravity even if they weren’t moving.

  • Andrew

Hi Andrew,

That is the answer I was looking for, brilliant and thanks very much.

George

Hi George,

If you set the object’s isSleepingAllowed property to false (http://docs.coronalabs.com/api/type/Body/isSleepingAllowed.html), it’ll prevent them from sleeping, and they’ll always respond to changes in gravity even if they weren’t moving.

  • Andrew

Hi Andrew,

That is the answer I was looking for, brilliant and thanks very much.

George