| 111 | } |
| 112 | |
| 113 | void PhysicsModule::Get(double& x1, double& y1, double& x2, double& y2) const |
| 114 | { |
| 115 | double cs = std::cos(mState[4]); |
| 116 | double sn = std::sin(mState[4]); |
| 117 | x1 = mState[0] + mLength1 * cs; |
| 118 | y1 = mState[2] + mLength1 * sn; |
| 119 | x2 = mState[0] - mLength2 * cs; |
| 120 | y2 = mState[2] - mLength2 * sn; |
| 121 | } |
| 122 | |
| 123 | void PhysicsModule::Update() |
| 124 | { |