Deactivate Soft Bodies

User avatar
sio2interactive
Posts: 31
Joined: Tue Jul 29, 2008 10:26 am

Deactivate Soft Bodies

Post by sio2interactive »

Im having a hard time to deactivate soft bodies this is the code that Im using:

_btSoftBody->setActivationState( ISLAND_SLEEPING | WANTS_DEACTIVATION );

_btSoftBody->activate( false );

But _btSoftBody->isActive() always return me that its active... Even tried to set the linear velocity at 0,0,0 still active... Am I missing something or? I also check the softbody demo, none of the objects there seems to become inactive...

So my questions is how can I deactivate manually a softbody?

Cheers,
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Deactivate Soft Bodies

Post by Erwin Coumans »

De-activation of soft bodies might not be implemented yet, I need to check it.

Thanks,
Erwin
User avatar
sio2interactive
Posts: 31
Joined: Tue Jul 29, 2008 10:26 am

Re: Deactivate Soft Bodies

Post by sio2interactive »

So is it implemented?

If not any relevant piece of code to make them deactivated manually?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Deactivate Soft Bodies

Post by Erwin Coumans »

It is not implemented yet, and my todo list is quite long. I created this issue to keep track of progress: http://code.google.com/p/bullet/issues/detail?id=439

If I find a quick manual way, I'll let you know,
Thanks!
Erwin