Having this isGravitated attribute one can only enable/disable the gravity for certain object.
Another useful option would be to set different values of gravity for each object (for example for making baloons 😉 ).
But of course this can be done using Gravity Controller.
You could prob. do that by making a variable from 0 - 1 that represents the percent of gravity and then multipying the effects of gravity (in b2Island) by that number.
hi guys, i have the same problem earlier, but i figured it out. you can create 2 worlds, one with negative gravity so that bodies it contain will drop to the ground and another world with a positive gravity so the bodies added to it will float up or you can set the gravity to off on either world to freeze all the bodies on that particular world.
hope that helps.
I vote for tearing gravity entirely out of the engine and leaving it up to the end user to implement it themselves. Yeah, what do you think about that 😉