| 527 | } |
| 528 | |
| 529 | void 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 | |
| 553 | void zFrag_DeleteProjectile(zFrag* frag) |
| 554 | { |
no test coverage detected