Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4338 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
May 27, 2005, 9:16:53 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: merged branches/physics back to the trunk
merged with command
svn merge -r 3866:HEAD . ../../trunk/
many conflict that i tried to resolv
@patrick: i hope i did not interfere with your stuff :/

Location:
orxonox/trunk/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4326 r4338  
    4545#include "particle_engine.h"
    4646#include "graphics_engine.h"
     47#include "physics_engine.h"
    4748
    4849#include "command_node.h"
     
    279280
    280281  AnimationPlayer::getInstance(); // initializes the animationPlayer
     282  PhysicsEngine::getInstance();
    281283
    282284  this->localCamera = new Camera();
     
    453455
    454456
    455 
    456   ParticleSystem* system = new ParticleSystem(1000, PARTICLE_SPRITE);
    457   system->setLifeSpan(.5);
    458   system->setConserve(.99);
    459   system->setRadius(2, 0, 2, 0);
    460 
    461   ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 100, .05);
    462   emitter->setParent(this->localPlayer);
    463  
    464   particleEngine->addConnection(emitter, system);
    465 
     457  /*
     458    ParticleSystem* system = new ParticleSystem(1000, PARTICLE_SPRITE);
     459    system->setLifeSpan(.5);
     460    system->setConserve(.99);
     461    system->setRadius(2, 0, 2, 0);
     462   
     463    ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 100, .05);
     464    emitter->setParent(this->localPlayer);
     465   
     466    particleEngine->addConnection(emitter, system);
     467  */
    466468  WorldEntity* testEntity = new TestEntity();
    467469  //testEntity->setRelCoor(Vector(570, 10, -15));
  • orxonox/trunk/src/story_entities/world.h

    r4326 r4338  
    3737  static WorldInterface* getInstance();
    3838  void init(World* world);
     39  inline World* getCurrentWorld(void) {return this->worldReference;}
    3940  tList<WorldEntity>* getEntityList();
    4041
     
    9394  void setPath( const char* name);
    9495
     96  inline Camera* getLocalCamera(void) {return this->localCamera;}
     97
    9598 private:
    9699  void constuctorInit(char* name, int worldID);
Note: See TracChangeset for help on using the changeset viewer.