tfgyhg
This commit is contained in:
@@ -53,13 +53,9 @@ void Systems::LevelGenerationSystem::SpawnObstacle()
|
|||||||
transform->Position = glm::vec3( positionRandom, startyz); // fix position
|
transform->Position = glm::vec3( positionRandom, startyz); // fix position
|
||||||
float scale = (float)(rand() % 1000) / 200;
|
float scale = (float)(rand() % 1000) / 200;
|
||||||
transform->Scale = glm::vec3(scale);
|
transform->Scale = glm::vec3(scale);
|
||||||
|
|
||||||
bounds->VolumeVector = glm::vec3(1, 1, 1);
|
bounds->VolumeVector = glm::vec3(1, 1, 1);
|
||||||
bounds->Origin = glm::vec3(0,1,0);
|
bounds->Origin = glm::vec3(0,1,0);
|
||||||
|
|
||||||
model->ModelFile = "Models/obstacle_cube_1.obj";
|
model->ModelFile = "Models/obstacle_cube_1.obj";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ void Systems::PlayerSystem::UpdateEntity(double dt, EntityID entity, EntityID pa
|
|||||||
if (input == nullptr)
|
if (input == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float speed = 200.0f;
|
float speed = 50.0f;
|
||||||
|
|
||||||
auto name = m_World->GetProperty<std::string>(entity, "Name");
|
auto name = m_World->GetProperty<std::string>(entity, "Name");
|
||||||
if (name == "Camera") {
|
if (name == "Camera") {
|
||||||
|
|||||||
Reference in New Issue
Block a user