Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2005, 2:50:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: physicsEngine works for particles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/story_entities/world.cc

    r4178 r4183  
    4848
    4949#include "animation3d.h"
     50#include "physics_engine.h"
     51#include "gravity.h"
    5052
    5153#include "substring.h"
     
    207209  TextEngine::getInstance()->flush();
    208210
     211  delete PhysicsEngine::getInstance();
    209212  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
    210213  //delete garbagecollecor
     
    255258
    256259  AnimationPlayer::getInstance(); // initializes the animationPlayer
     260  PhysicsEngine::getInstance();
    257261
    258262  this->localCamera = new Camera();
     
    496500  emitter->setParent(this->localPlayer);
    497501 
     502  Gravity* gravity = new Gravity();
     503  gravity->setMagnitude(0.001);
     504  new PhysicsConnection(system, gravity);
     505
    498506  particleEngine->addConnection(emitter, system);
    499507}
     
    11451153
    11461154      AnimationPlayer::getInstance()->tick(this->dtS);
     1155      PhysicsEngine::getInstance()->tick(this->dtS);
     1156
    11471157      particleEngine->tick(this->dtS);
    11481158    }
Note: See TracChangeset for help on using the changeset viewer.