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

Function zFrag_ProjectileCollData

src/SB/Game/zShrapnel.cpp:529–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529void zFrag_ProjectileCollData(zFrag* frag)
530{
531 xCollis colls;
532
533 frag->info.projectile.tColl = 1e38f;
534 frag->info.projectile.path.initPos.y -=
535 frag->info.projectile.model->Data->boundingSphere.radius *
536 frag->info.projectile.parentScale;
537 xParabolaHitsEnv(&frag->info.projectile.path, globals.sceneCur->env, &colls);
538
539 if ((colls.flags & 1) != 0)
540 {
541 frag->info.projectile.tColl = frag->info.projectile.path.initVel.x;
542 xVec3Copy(&frag->info.projectile.N, &colls.norm);
543 }
544 else
545 {
546 frag->info.projectile.tColl = 1e38f;
547 }
548 frag->info.projectile.path.initPos.y +=
549 frag->info.projectile.model->Data->boundingSphere.radius *
550 frag->info.projectile.parentScale;
551}
552
553void zFrag_DeleteProjectile(zFrag* frag)
554{

Callers 1

zFrag_ProjectileManagerFunction · 0.85

Calls 2

xVec3CopyFunction · 0.85
xParabolaHitsEnvFunction · 0.50

Tested by

no test coverage detected