Ship is movable

This commit is contained in:
Tobias Dahl
2014-03-13 00:54:49 +01:00
parent fef9c1f751
commit 9dd1733689
3 changed files with 56 additions and 10 deletions
+2
View File
@@ -85,10 +85,12 @@ void GameWorld::Initialize()
// Player
ent = CreateEntity();
SetProperty(ent, "Name", std::string("PlayerShip"));
transform = AddComponent<Components::Transform>(ent, "Transform");
transform->Position = glm::vec3(0.f, 0.f, 0.f);
model = AddComponent<Components::Model>(ent, "Model");
model->ModelFile = "ship.obj";
AddComponent<Components::Input>(ent, "Input");
ent = CreateEntity();
transform = AddComponent<Components::Transform>(ent, "Transform");