55 public:
virtual void Init();
58 private:
void OnUpdate();
64 private:
void OnContact(
const std::string &_collisionName,
68 private:
void HandleAttach();
71 private:
void HandleDetach();
74 private:
void ResetDiffs();
89 private: std::vector<event::ConnectionPtr> connections;
92 private: std::map<std::string, physics::CollisionPtr> collisions;
95 private: std::vector<physics::Contact> contacts;
98 private:
bool attached;
105 private: std::vector<double> diffs;
108 private:
int diffIndex;
118 private:
int posCount;
122 private:
int zeroCount;
125 private:
unsigned int min_contact_count;
128 private:
int attach_steps;
131 private:
int detach_steps;