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();
92 private: std::vector<event::ConnectionPtr> connections;
95 private: std::map<std::string, physics::CollisionPtr> collisions;
98 private: std::vector<physics::Contact> contacts;
101 private:
bool attached;
108 private: std::vector<double> diffs;
111 private:
int diffIndex;
121 private:
int posCount;
125 private:
int zeroCount;
128 private:
unsigned int min_contact_count;
131 private:
int attachSteps;
134 private:
int detachSteps;