Billboarding working again

This commit is contained in:
Stiffly
2014-06-03 23:48:13 +02:00
parent df32a3b07d
commit 909ee94e26
6 changed files with 48 additions and 24 deletions
+8 -1
View File
@@ -97,7 +97,7 @@ void Systems::TankSteeringSystem::UpdateEntity(double dt, EntityID entity, Entit
m_TimeSinceLastShot[tankSteeringComponent->Barrel] = 0;
Events::PlaySFX e;
e.Resource = "Sounds/SFX/LongBoom.wav";
e.Resource = "Sounds/SFX/TankShot.mp3";
e.Position = absoluteTransform.Position;
e.Loop = false;
EventBroker->Publish(e);
@@ -193,6 +193,13 @@ bool Systems::TankSteeringSystem::OnCollision(const Events::Collision &e)
e.Color = glm::vec4(2, 2, 2, 0.2);
EventBroker->Publish(e);
}
{
Events::PlaySFX e;
e.MinDistance = 150.f;
e.Position = shellTransform->Position;
e.Resource = "Sounds/SFX/Explosion.wav";
EventBroker->Publish(e);
}
for (auto &physComponent : *physicsComponents)
{