Powerup FOV fixed

This commit is contained in:
ViktorLjung
2014-03-14 00:00:36 +01:00
parent 18f7b977a3
commit 3378e75313
4 changed files with 12 additions and 5 deletions
@@ -55,7 +55,7 @@ void Systems::LevelGenerationSystem::SpawnObstacle()
else if(typeRandom >= 5 && typeRandom < 8)
{
m_World->SetProperty(ent, "Name", std::string("Obstacle"));
float scale = (float)(rand() % 1000) / 100;
float scale = 1.f + (float)(rand() % 1000) / 100;
transform->Scale = glm::vec3(scale);
bounds->VolumeVector = glm::vec3(1, 1, 1);
bounds->Origin = glm::vec3(0,1,0);