group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
WeaponSpawnerSystem.cpp File Reference

Weapon spawner manager system. More...

Include dependency graph for WeaponSpawnerSystem.cpp:

Namespaces

namespace  systems
 Client-only input sampling system — split into two halves so mouse look can run every iterate() (smooth camera at any FPS) while movement keys run once per physics tick group (server-consistent).

Functions

bool systems::overlapsAABB (glm::vec3 aPos, glm::vec3 aHalf, glm::vec3 bPos, glm::vec3 bHalf)
 Test whether two axis-aligned bounding boxes overlap.
glm::vec3 systems::viewForward (float yaw, float pitch)
 Compute the player's 3D view direction from yaw and pitch angles.
void systems::checkForPlayers (Registry &registry, Position spawnerPos, CollisionShape spawnerShape, WeaponSpawner &spawner)
 Check if any player overlaps the spawner and transfer the weapon on pickup.
void systems::runWeaponSpawners (Registry &registry, float dt)
 Tick weapon spawners: check player overlap for pickup, manage cooldowns.

Detailed Description

Weapon spawner manager system.