Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 537 for code/branches/FICN/src


Ignore:
Timestamp:
Dec 16, 2007, 1:07:59 AM (17 years ago)
Author:
nicolasc
Message:

got particle system wroking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/orxonox.cc

    r535 r537  
    391391  }
    392392
     393  /**
     394   *
     395   * @param
     396   */
    393397  void Orxonox::createScene(void)
    394398  {
     
    414418
    415419
     420  /**
     421   *
     422   */
    416423  void Orxonox::setupScene()
    417424  {
     
    425432    steering_->addNode(node);
    426433
    427 /*
    428     particle::ParticleInterface *e = new particle::ParticleInterface(mgr,"engine","strahl");
     434
     435    particle::ParticleInterface *e = new particle::ParticleInterface(mgr,"engine","Orxonox/strahl");
    429436    e->particleSystem_->setParameter("local_space","true");
    430     e->setPositionOfEmitter(0, Vector3(0,0,-10));
    431     e->setDirection(Vector3(0,0,-1));*/
    432 //     e->addToSceneNode(node);
    433 
    434 
     437    e->setPositionOfEmitter(0, Vector3(0,-10,200));
     438    e->setDirection(Vector3(0,0,-1));
     439    e->addToSceneNode(node);
     440
     441    particle::ParticleInterface *w = new particle::ParticleInterface(mgr,"schuss","Orxonox/schuss");
     442    w->particleSystem_->setParameter("local_space","true");
     443    w->newEmitter();
     444    w->setDirection(Vector3(0,0,1));
     445    w->setPositionOfEmitter(0, Vector3(10,10,0));
     446    w->setPositionOfEmitter(1, Vector3(-10,10,0));
     447    w->addToSceneNode(node);
    435448  }
    436449
Note: See TracChangeset for help on using the changeset viewer.