This project has moved and is read-only. For the latest updates, please go here.

Inactivite Controler Demo vr Stacked Shapes Demo

Jun 12, 2009 at 3:36 AM

Hi GenBox iam sure u willl respond this and thanks for dedicate time on ur answers(or other people who respond this)

ok here we go...

Single Line Questions Hoping to get Complex Answer....

Why theres a space between Boxes on Inactivite Controler and why they got stability(when the got stacked) Easily than Piramid Demo(the boxes never got stability)

Thanks Again...

Jun 12, 2009 at 3:37 AM

*Space Between boxes on Inactive Controler Demo

Jun 12, 2009 at 4:57 AM

Thanks for the kind words.

The inactivity controller demo is used to show off how you can use the inactivity controller build into Farseer Physics Engine to make the bodies sleep after some time. It takes some tweaking to get it right, but it can drasticly increase the performance in platform-based games where most of the geometries are active when the player is near.

The inactivity controller itself can actually have a big performance impact - It iterates all the moving bodies in the world to see if they should sleep. So use it wisely. For Farseer Physics Engine 3.0 we are working on a better implementation of sleeping bodies that only wake up when needed. This increase both stacking stability and performance - but it also has its limitations.