Changeset 10078 in orxonox.OLD for branches/playability/src/world_entities/particles
- Timestamp:
- Dec 14, 2006, 10:58:41 AM (18 years ago)
- Location:
- branches/playability/src/world_entities/particles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/particles/emitter_node.cc
r10077 r10078 46 46 { 47 47 this->emitter->setSystem(NULL); 48 delete this->emitter;48 this->removeNode(); 49 49 } 50 50 … … 61 61 } 62 62 63 voidEmitterNode::start()63 bool EmitterNode::start() 64 64 { 65 this->started = true; 65 this->started = true; 66 return this->started; 66 67 } 67 68 … … 76 77 this->removeNode(); 77 78 } 79 PRINTF(0)("Coordinate Update EmitterNode: (%f,%f,%f) -> (%f,%f,%f)\n",this->getAbsCoor().x,this->getAbsCoor().y,this->getAbsCoor().z,this->velocity.x,this->velocity.y,this->velocity.z); 78 80 this->setAbsCoor(this->getAbsCoor() + (this->velocity * dt)); 79 81 } -
branches/playability/src/world_entities/particles/emitter_node.h
r10077 r10078 28 28 virtual void tick( float time); 29 29 30 voidstart();30 bool start(); 31 31 inline void setVelocity(Vector velocity) { this->velocity = velocity;}; 32 32
Note: See TracChangeset
for help on using the changeset viewer.