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

Function xCam_DampP

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

Source from the content-addressed store, hash-verified

310}
311
312static 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}
325static void xCam_CorrectYaw(xCamera* r3, F32 f1, F32 f2, F32 f3)
326{
327 // non-matching: incorrect float registers, slightly out-of-order fmsubs instruction

Callers 1

_xCameraUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected