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

Function xCam_CorrectP

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

Source from the content-addressed store, hash-verified

293}
294
295static void xCam_CorrectP(xCamera* r3, F32 f1, F32 f2, F32 f3)
296{
297 F32 tmp1, tmp2, tmp3;
298
299 f2 = 0.15f * f2;
300
301 tmp1 = 2.5f * (2.0f * f1 - f2 * f3);
302 tmp1 -= f2;
303 tmp1 *= f3;
304
305 tmp2 = r3->mbasis.right.x * tmp1;
306 tmp3 = r3->mbasis.right.z * tmp1;
307
308 r3->mat.pos.x += tmp2;
309 r3->mat.pos.z += tmp3;
310}
311
312static void xCam_DampP(xCamera* r3, F32 f1, F32 f2)
313{

Callers 1

_xCameraUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected