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

Function zLasso_ResetTimer

src/SB/Game/zLasso.cpp:322–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void zLasso_ResetTimer(zLasso* lasso, F32 interpTime)
323{
324 f32 temp_f0;
325 f32 temp_f0_2;
326
327 lasso->secsTotal = interpTime;
328 lasso->secsLeft = interpTime;
329 temp_f0 = lasso->crRadius;
330 lasso->stRadius = temp_f0;
331 lasso->tgRadius = temp_f0;
332 temp_f0_2 = lasso->crSlack;
333 lasso->stSlack = temp_f0_2;
334 lasso->tgSlack = temp_f0_2;
335 xVec3Copy(&lasso->stNormal, &lasso->crNormal);
336 xVec3Copy(&lasso->tgNormal, &lasso->crNormal);
337 xVec3Add(&lasso->stCenter, &lasso->crCenter, &lasso->anchor);
338}
339
340static void fizzicalRadius(zLasso* lasso, F32 dt, xVec3* newPoint)
341{

Callers 6

LassoThrowCBFunction · 0.85
LassoFlyCBFunction · 0.85
LassoDestroyCBFunction · 0.85
LassoSwingBeginCBFunction · 0.85
LassoSwingTossCBFunction · 0.85
LassoSwingCBFunction · 0.85

Calls 2

xVec3CopyFunction · 0.85
xVec3AddFunction · 0.85

Tested by

no test coverage detected