Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2006, 10:58:41 AM (18 years ago)
Author:
marcscha
Message:

Update in swarm launcher, swarm missile, mbolt

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  
    4646{
    4747  this->emitter->setSystem(NULL);
    48   delete this->emitter;
     48  this->removeNode();
    4949}
    5050
     
    6161}
    6262
    63 void EmitterNode::start()
     63bool EmitterNode::start()
    6464{
    65    this->started  = true;
     65  this->started  = true;
     66  return this->started;
    6667}
    6768
     
    7677    this->removeNode();
    7778  }
     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);
    7880  this->setAbsCoor(this->getAbsCoor() + (this->velocity * dt));
    7981}
  • branches/playability/src/world_entities/particles/emitter_node.h

    r10077 r10078  
    2828  virtual void tick( float time);
    2929
    30   void start();
     30  bool start();
    3131  inline void setVelocity(Vector velocity) { this->velocity = velocity;};
    3232
Note: See TracChangeset for help on using the changeset viewer.