Water splash

This commit is contained in:
Stiffly
2014-06-04 03:26:29 +02:00
parent 90a92d05e4
commit 72a8ee9080
5 changed files with 86 additions and 36 deletions
+8 -2
View File
@@ -9,8 +9,10 @@ namespace Events
{
struct CreateExplosion : Event
{
CreateExplosion()
: Color(glm::vec4(0)) {}
CreateExplosion() :
Color(glm::vec4(0)),
UseGoalVector(false) {}
glm::vec3 Position;
glm::vec4 Color;
double LifeTime;
@@ -20,6 +22,10 @@ namespace Events
float Speed;
float SpreadAngle;
std::vector<float> ParticleScale;
bool UseGoalVector;
glm::vec3 GoalVelocity;
bool Emitting;
float SpawnFrequency;
};
}