MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xCam_CorrectPitch

Function xCam_CorrectPitch

src/SB/Core/x/xCamera.cpp:340–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338 r3->yaw_cur += tmp2;
339}
340static void xCam_CorrectPitch(xCamera* r3, F32 f1, F32 f2, F32 f3)
341{
342 // non-matching: same reasons as xCam_CorrectYaw
343
344 F32 tmp1, tmp2;
345
346 tmp1 = 1.0f / r3->pitch_ct;
347
348 tmp2 = 2.0f * r3->pitch_cd * f1 - f2 * f3;
349 tmp2 = tmp1 * tmp2;
350 tmp2 -= f2;
351 tmp2 *= r3->pitch_csv * f3;
352
353 r3->pitch_cur += tmp2;
354}
355
356static void xCam_CorrectRoll(xCamera* r3, F32 f1, F32 f2, F32 f3)
357{

Callers 1

_xCameraUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected