| 354 | } |
| 355 | |
| 356 | static void xCam_CorrectRoll(xCamera* r3, F32 f1, F32 f2, F32 f3) |
| 357 | { |
| 358 | // non-matching: same reasons as xCam_CorrectYaw |
| 359 | |
| 360 | F32 tmp1, tmp2; |
| 361 | |
| 362 | tmp1 = 1.0f / r3->roll_ct; |
| 363 | |
| 364 | tmp2 = 2.0f * r3->roll_cd * f1 - f2 * f3; |
| 365 | tmp2 = tmp1 * tmp2; |
| 366 | tmp2 -= f2; |
| 367 | tmp2 *= r3->roll_csv * f3; |
| 368 | |
| 369 | r3->roll_cur += tmp2; |
| 370 | } |
| 371 | |
| 372 | void SweptSphereHitsCameraEnt(xScene*, xRay3* ray, xQCData* qcd, xEnt* ent, void* data) |
| 373 | { |