Game Development Reference
In-Depth Information
The typical workaround is to tweak the sleep threshold of the object, the minimum
values of linear and angular velocity, which Bullet considers too low. This can be
achieved by calling setSleepingThresholds() on any rigid body. As a last re-
sort, we can force all the objects to remain activated, by calling the setActiva-
tionState(DISABLE_DEACTIVATION) function on every new object, but this will
cost us some performance, since every object will now be a part of the active tree,
and hence will be checked every iteration.
Search WWH ::




Custom Search