public override void UpdateAabbs() { //IndexedMatrix predictedTrans = IndexedMatrix.Identity; foreach (CollisionObject colObj in m_collisionObjects) { RigidBody body = RigidBody.Upcast(colObj); if (body != null) { if (body.IsActive() && (!body.IsStaticObject())) { IndexedVector3 minAabb; IndexedVector3 maxAabb; colObj.GetCollisionShape().GetAabb(colObj.GetWorldTransform(), out minAabb, out maxAabb); IBroadphaseInterface bp = GetBroadphase(); bp.SetAabb(body.GetBroadphaseHandle(), ref minAabb, ref maxAabb, m_dispatcher1); } } } }