22 #ifndef _CONTACTSENSOR_HH_
23 #define _CONTACTSENSOR_HH_
59 public:
virtual void Load(
const std::string &_worldName,
64 public:
virtual void Load(
const std::string &_worldName);
67 public:
virtual void Init();
71 protected:
virtual void UpdateImpl(
bool _force);
74 protected:
virtual void Fini();
89 const std::string &_collisionName)
const;
96 const std::string &_collisionName,
unsigned int _index)
const;
101 public: std::map<std::string, physics::Contact>
GetContacts(
102 const std::string &_collisionName);
107 private:
void OnContact(
const std::string &_collisionName,
110 private: std::vector<physics::CollisionPtr> collisions;
112 private:
typedef std::map<std::string,
113 std::map<std::string, physics::Contact> > Contact_M;
115 private: Contact_M contacts;
119 private: boost::mutex *mutex;
125 {
return this->mutex;}