WIP
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "Physics/CPhysics.h"
|
||||
#include "Physics/CCircleShape.h"
|
||||
#include "Physics/ESetImpulse.h"
|
||||
#include "Physics/ECreateParticleSequence.h"
|
||||
|
||||
#include "Rendering/CSprite.h"
|
||||
#include "Rendering/CModel.h"
|
||||
|
||||
@@ -64,6 +64,22 @@ void dd::Systems::PadSystem::Initialize()
|
||||
m_PadEntity = ent;
|
||||
m_PadTransform = ctransform.get();
|
||||
m_PadComponent = pad.get();
|
||||
|
||||
Events::CreateParticleSequence e;
|
||||
e.SpriteFile = "Textures/Particles/FadeBall.png";
|
||||
e.Color = glm::vec4(0, 0, 1, 1);
|
||||
e.EmitterLifeTime = 9999999999;
|
||||
e.EmittingAngle = glm::two_pi<float>();
|
||||
e.ParticleLifeTime = 0.5f;
|
||||
e.ParticlesPerTick = 2;
|
||||
e.ScaleValues.push_back(glm::vec3(2));
|
||||
e.AlphaValues.push_back(1.f);
|
||||
e.SpawnRate = 0.1;
|
||||
e.Spread = glm::half_pi<float>();
|
||||
e.Speed = 10;
|
||||
e.parent = m_PadEntity;
|
||||
EventBroker->Publish(e);
|
||||
|
||||
}
|
||||
|
||||
//Stick
|
||||
|
||||
Reference in New Issue
Block a user