Particle.cpp 999 B

123456789101112131415161718192021222324252627
  1. #include "Particle.h"
  2. #include "phys/RigidBody.h"
  3. //==============================================================================
  4. // Constructor =
  5. //==============================================================================
  6. Particle::Particle(float timeOfDeath_, SceneNode* parent):
  7. ModelNode(false, parent),
  8. timeOfDeath(timeOfDeath_)
  9. {}
  10. //==============================================================================
  11. // Destructor =
  12. //==============================================================================
  13. Particle::~Particle()
  14. {}
  15. //==============================================================================
  16. // setNewRigidBody =
  17. //==============================================================================
  18. void Particle::setNewRigidBody(RigidBody* body_)
  19. {
  20. body.reset(body_);
  21. }