This commit is contained in:
2014-05-13 05:13:28 +02:00
parent 56ab378eb9
commit 6dd25357bb
+4 -2
View File
@@ -120,8 +120,10 @@ void GameWorld::Initialize()
{ {
auto groundshape = CreateEntity(container); auto groundshape = CreateEntity(container);
auto transformshape = AddComponent<Components::Transform>(groundshape, "Transform"); auto transformshape = AddComponent<Components::Transform>(groundshape, "Transform");
auto meshShape = AddComponent<Components::MeshShape>(groundshape, "MeshShape"); auto boxShape = AddComponent<Components::BoxShape>(groundshape, "BoxShape");
meshShape->ResourceName = "Models/Container/Container.OBJ"; boxShape->Width = 3.0f;
boxShape->Height = 3.0f;
boxShape->Depth = 6.6f;
CommitEntity(groundshape); CommitEntity(groundshape);
} }