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

Function xCam_CorrectRoll

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

Source from the content-addressed store, hash-verified

354}
355
356static 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
372void SweptSphereHitsCameraEnt(xScene*, xRay3* ray, xQCData* qcd, xEnt* ent, void* data)
373{

Callers 1

_xCameraUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected