Animation models and stuff

This commit is contained in:
viktorljung
2015-10-19 16:48:42 +02:00
parent f2dab5bd1b
commit 9e8d176999
5 changed files with 1153 additions and 488 deletions
File diff suppressed because one or more lines are too long
+561 -487
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -252,7 +252,7 @@ public:
m_World->CommitEntity(background); m_World->CommitEntity(background);
} }
// auto particleEmitter= m_World->AddComponent<Components::Emitter>(Pe); // auto particleEmitter= m_World->AddComponent<Components::Emitter>(Pe);
//Water test //Water test
{ {
auto t_waterBody = m_World->CreateEntity(); auto t_waterBody = m_World->CreateEntity();
@@ -265,6 +265,9 @@ public:
m_World->CommitEntity(t_waterBody); m_World->CommitEntity(t_waterBody);
} }
//ParticleTest //ParticleTest
+1
View File
@@ -37,6 +37,7 @@
#include "Game/EHitLag.h" #include "Game/EHitLag.h"
#include "Game/EScreenShake.h" #include "Game/EScreenShake.h"
#include "Game/EActionButton.h" #include "Game/EActionButton.h"
#include "Rendering/CAnimation.h"
namespace dd namespace dd
+11
View File
@@ -55,6 +55,17 @@ void dd::Systems::PadSystem::Initialize()
m_World->CommitEntity(ent); m_World->CommitEntity(ent);
SetEdge(3.2 - (ctransform->Scale.x / 2)); SetEdge(3.2 - (ctransform->Scale.x / 2));
{
auto entArm = m_World->CreateEntity(ent);
auto ctransform = m_World->AddComponent<Components::Transform>(entArm);
ctransform->Position = glm::vec3(1.f, -3.0f, 0.f);
auto cModel = m_World->AddComponent<Components::Model>(entArm);
cModel->ModelFile = "Models/Kraken/Arm.dae";
auto animationComponent = m_World->AddComponent<Components::Animation>(entArm);
animationComponent->Speed = 1.0f;
}
} }
//Stick //Stick