27 #ifndef TG_RIGID_AUTO_COMPOUND_H
28 #define TG_RIGID_AUTO_COMPOUND_H
34 class btCollisionObject;
56 std::vector< tgRigidInfo* > execute();
62 void setRigidBodyForGroup(btCollisionObject* body, std::deque<tgRigidInfo*>& group);
64 void setRigidInfoForGroup(
tgRigidInfo* rigidInfo, std::deque<tgRigidInfo*>& group);
70 std::deque<tgRigidInfo*> findGroup(
tgRigidInfo* rigid, std::deque<tgRigidInfo*>& ungrouped);
72 void createCompounds();
74 tgRigidInfo* createCompound(std::deque<tgRigidInfo*> rigids);
76 bool rigidBelongsIn(
tgRigidInfo* rigid, std::deque<tgRigidInfo*> group);
79 std::deque<tgRigidInfo*> m_rigids;
80 std::vector< std::deque<tgRigidInfo*> > m_groups;
81 std::vector< tgRigidInfo* > m_compounded;