mettli / bullet

Automatically exported from code.google.com/p/bullet
Other
0 stars 0 forks source link

Separate gravity for soft body #505

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, soft bodies have to have their own gravity set up through 
btSoftBodyWorldInfo. This is the only gravity that seems to affect them; the 
"regular" world gravity is ignored. This has caused confusion both with myself 
and another forum user (and likely others) when trying to figure out why a soft 
body isn't responding to gravity. I don't know if there was originally some 
reason for soft bodies to have their own gravity separate from rigid bodies, 
but from what I can tell in the source code this just seems like unnecessary 
duplication.

My suggestion would be to get rid of gravity from btSoftBodyWorldInfo, and set 
up soft bodies to simply use the dynamics world gravity, just as rigid bodies 
do.

Original issue reported on code.google.com by dave.bru...@gmail.com on 10 Apr 2011 at 9:48

GoogleCodeExporter commented 9 years ago
Good point. Do you mind trying to create a patch for this?

Original comment by erwin.coumans on 14 Jun 2011 at 6:58

GoogleCodeExporter commented 9 years ago
We cannot get rid of the gravity in the btSoftBodyWorldInfo unless we add some 
dependency on the physics world, which is not desirable.

Some rewrite of btSoftBody is necessary, hopefully for Bullet 3.x

Original comment by erwin.coumans on 26 Apr 2012 at 4:58