56 public:
virtual void Init();
59 private:
void OnUpdate();
65 private:
void OnContact(
const std::string &_collisionName,
69 private:
void HandleAttach();
72 private:
void HandleDetach();
75 private:
void ResetDiffs();
93 private: std::vector<event::ConnectionPtr> connections;
96 private: std::map<std::string, physics::CollisionPtr> collisions;
99 private: std::vector<physics::Contact> contacts;
102 private:
bool attached;
109 private: std::vector<double> diffs;
112 private:
int diffIndex;
122 private:
int posCount;
126 private:
int zeroCount;
129 private:
unsigned int min_contact_count;
132 private:
int attachSteps;
135 private:
int detachSteps;