Why does a physics body turn gray after half a second?

Once it has, I can’t hittest it with other objects.

Has anyone experienced this before?
Thanks

Tom [import]uid: 55068 topic_id: 14814 reply_id: 314814[/import]

I personally have never seen this.

Could you provide a sample/example of how you are handling things? [import]uid: 84637 topic_id: 14814 reply_id: 54756[/import]

It’s gone to “sleep”.

Use:

body.isSleepingAllowed = false

to prevent it to from “sleeping”.

More info here:

http://developer.anscamobile.com/content/game-edition-box2d-physics-engine [import]uid: 10903 topic_id: 14814 reply_id: 54820[/import]

Danny - he meant the body went grey when he was using showing physics bodies using hybrid - I assume :wink:

In which case crssmn’s suggestion will work perfectly.

Peach :slight_smile: [import]uid: 52491 topic_id: 14814 reply_id: 54843[/import]

@Peach

Of course, good spot :slight_smile: [import]uid: 84637 topic_id: 14814 reply_id: 54845[/import]