| 173 | } |
| 174 | |
| 175 | void applyImpulse(const b3Vector3& impulse, const b3Vector3& rel_pos) |
| 176 | { |
| 177 | m_linearVelocity += impulse * m_invMass; |
| 178 | b3Vector3 torqueImpulse = rel_pos.cross(impulse); |
| 179 | m_angularVelocity += m_invInertiaTensorWorld * torqueImpulse; |
| 180 | } |
| 181 | |
| 182 | void integrateVelocity(double deltaTime) |
| 183 | { |
no test coverage detected