enable to suspend and restore dynamics. also, catched the case where failed dynamics (resulting in infinite AABB sizes) doesn't mess up the entire simulation, it just get's deactivated (with a message that a simulation error happened)

This commit is contained in:
ejcoumans
2006-06-22 03:00:43 +00:00
parent c5fdd98330
commit 2eed545a70
5 changed files with 43 additions and 11 deletions

View File

@@ -23,6 +23,7 @@ subject to the following restrictions:
#define ISLAND_SLEEPING 2
#define WANTS_DEACTIVATION 3
#define DISABLE_DEACTIVATION 4
#define DISABLE_SIMULATION 5
struct BroadphaseProxy;
class CollisionShape;
@@ -94,6 +95,10 @@ struct CollisionObject
void activate();
inline bool IsActive() const
{
return ((GetActivationState() != ISLAND_SLEEPING) && (GetActivationState() != DISABLE_SIMULATION));
}
};