Animations and stuff

This commit is contained in:
viktorljung
2015-10-21 15:40:19 +02:00
parent a85a703991
commit f4ffead4f2
7 changed files with 4599 additions and 2 deletions
+12
View File
@@ -70,6 +70,18 @@ void dd::Systems::PadSystem::Initialize()
}
}
{
auto entBody = m_World->CreateEntity();
auto ctransform = m_World->AddComponent<Components::Transform>(entBody);
ctransform->Position = glm::vec3(0.f, 3.0f, -10.f);
ctransform->Scale = glm::vec3(3.f);
auto cModel = m_World->AddComponent<Components::Model>(entBody);
cModel->ModelFile = "Models/Kraken/Body.dae";
auto animationComponent = m_World->AddComponent<Components::Animation>(entBody);
animationComponent->Speed = 0.6f;
}
//Stick
{
auto ent = m_World->CreateEntity();