Hi All! I need to make an object static as soon as it starts sleeping. One way to do this would be to get notified upon the object becoming asleep. I couldn't find anything on that. Or is there any other way? Many thanks!
Vitaly
I scanned the manual and sources once again - def there is nothing like a SleepListener. Apart from modifying the library, another way to achieve that would be iterating through ALL world objects every x frames and marking sleeping objects static I guess? Erin?
I do not want to add a sleep listener. It is not commonly needed.
You likely process each object anyway because you must draw them. So just check if they are sleeping.
Many thanks for confirming!