Closed GoogleCodeExporter closed 9 years ago
We could use such optional argument (applyGravity), but you still have the
problem that
if you call world->setGravity, it will mess with the gravity of all rigid
bodies.
A flag for each body (ignoreWorldGravity) would solve this.
Original comment by erwin.coumans
on 5 Jan 2010 at 12:05
I solved this by never using setGravity if I have my own gravity control. Not a
problem since if you use your own gravity control you tend to have a list of
physics
objects around anyways so you can iterate that one forgetting about the bullet
way.
Original comment by rol...@rptd.ch
on 5 Jan 2010 at 7:44
Fixed in trunk for Bullet 2.76: to disable setting the world gravity, use
rigidbody->setFlags(BT_DISABLE_WORLD_GRAVITY);
Original comment by erwin.coumans
on 23 Feb 2010 at 2:36
Original issue reported on code.google.com by
rol...@rptd.ch
on 30 Dec 2009 at 1:36