| 310 | } |
| 311 | |
| 312 | static void xCam_DampP(xCamera* r3, F32 f1, F32 f2) |
| 313 | { |
| 314 | F32 tmp1, tmp2; |
| 315 | |
| 316 | f1 = -6.0f * f1; |
| 317 | f2 = f1 * f2 * f2; |
| 318 | |
| 319 | tmp1 = r3->mbasis.right.x * f2; |
| 320 | tmp2 = r3->mbasis.right.z * f2; |
| 321 | |
| 322 | r3->mat.pos.x += tmp1; |
| 323 | r3->mat.pos.z += tmp2; |
| 324 | } |
| 325 | static void xCam_CorrectYaw(xCamera* r3, F32 f1, F32 f2, F32 f3) |
| 326 | { |
| 327 | // non-matching: incorrect float registers, slightly out-of-order fmsubs instruction |