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

Function zThrown_Setup

src/SB/Game/zThrown.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50void zThrown_Setup(zScene* sc)
51{
52 ThrowableStats* stats;
53 char tmpstr[256];
54
55 F32 airTime;
56
57 c_fruit.killTimer = globals.player.carry.fruitLifetime;
58 airTime = xsqrt((2.0f * globals.player.carry.throwHeight) / globals.player.carry.throwGravity);
59 globals.player.carry.throwDistance = globals.player.carry.throwGravity * airTime;
60 l_normal.throwSpeedXZ = globals.player.carry.throwDistance / (2.0f * airTime);
61}
62
63void zThrown_AddTempFrame(zThrownStruct* thrown)
64{

Callers 1

zSceneSetupFunction · 0.70

Calls 1

xsqrtFunction · 0.85

Tested by

no test coverage detected