Browse Source

ParticleEmitter

Panagiotis Christopoulos Charitos 14 years ago
parent
commit
6ac3558fb6

File diff suppressed because it is too large
+ 0 - 2
build/debug/Makefile


+ 9 - 0
src/Scene/ParticleEmitter/Particle.cpp

@@ -0,0 +1,9 @@
+#include "Particle.h"
+#include "PhysRigidBody.h"
+
+
+//======================================================================================================================
+// Destructor                                                                                                          =
+//======================================================================================================================
+Particle::~Particle()
+{}

+ 28 - 0
src/Scene/ParticleEmitter/Particle.h

@@ -0,0 +1,28 @@
+#ifndef PARTICLE_H
+#define PARTICLE_H
+
+#include "ModelNode.h"
+
+
+namespace Phys {
+class RigidBody;
+}
+
+
+/// The scene node particle class
+class Particle: public ModelNode
+{
+	public:
+		Particle(uint timeOfDeath_): timeOfDeath(timeOfDeath_) {}
+		~Particle();
+
+		GETTER_SETTER(uint, timeOfDeath, getTimeOfDeath, setTimeOfDeath)
+		void setNewRigidBody(Phys::RigidBody* body_) {body.reset(body_);}
+
+	private:
+		uint timeOfDeath; ///< Life of death. If < 0.0 then dead. In seconds
+		boost::scoped_ptr<Phys::RigidBody> body;
+};
+
+
+#endif

+ 0 - 0
src/Scene/ParticleEmitter.cpp → src/Scene/ParticleEmitter/ParticleEmitter.cpp


+ 0 - 0
src/Scene/ParticleEmitter.h → src/Scene/ParticleEmitter/ParticleEmitter.h


Some files were not shown because too many files changed in this diff