void Projectile::Explode() { // Create a particle effect ParticleSystem* explosion = new ParticleSystem((ImageResource*)ResourceManager::Get()->GetResource("particle_explosion"), 0.5f); explosion->SetPosition(bounds.center); Game::Get()->GetFXManager()->RegisterEffect(explosion); // Simulate the explosion on the world Game::Get()->GetWorld()->SimulateExplosion(bounds.center, explosionData); }