body Deactivation

bonjovi
Posts: 35
Joined: Mon Jul 20, 2009 12:58 pm

body Deactivation

Post by bonjovi »

Hi,

I'm trying to test bodies deactivation parameters. i can read in btRigidBody.cpp (very firsts lines):

Code: Select all

//'temporarily' global variables
btScalar	gDeactivationTime = btScalar(2.);
Does it means that the angular/linear speeds must be less than thresholds during gDeactivationTime seconds ? where the default value is 2.0 seconds ?

If i'm not wrong, i think it gDeactivationTime should be set per-body and adjustable instead of using a global variable.

Thanks