----------------------------------------------------------------------------- Calculate the inertia along the given vector This function can be used to calculate the amount of force needed to affect a change in velocity along the specified normal applied at the given point. */
| 223 | the given point. |
| 224 | */ |
| 225 | F32 Rigid::getZeroImpulse(const Point3F& r,const Point3F& normal) |
| 226 | { |
| 227 | Point3F a,b,c; |
| 228 | mCross(r,normal,&a); |
| 229 | invWorldInertia.mulV(a,&b); |
| 230 | mCross(b,r,&c); |
| 231 | return 1 / (oneOverMass + mDot(c,normal)); |
| 232 | } |
| 233 | |
| 234 | F32 Rigid::getKineticEnergy() |
| 235 | { |
no test coverage detected