Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9169 in orxonox.OLD


Ignore:
Timestamp:
Jul 4, 2006, 8:41:55 PM (18 years ago)
Author:
bensch
Message:

model rotate again

Location:
branches/presentation/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/environments/model_entity.cc

    r9167 r9169  
    7272{
    7373  Vector v(x,y,z);
     74  v.debug();
    7475  v.normalize();
     76  v.debug();
     77
    7578  if (this->momentum == NULL)
    7679    this->momentum = new Quaternion;
    7780  *this->momentum = Quaternion(angle, v);
     81
     82  this->momentum->debug();
    7883}
    7984
    8085void ModelEntity::tick(float dt)
    8186{
    82   printf("TEST\n");
    8387  if (this->speed != NULL)
    8488    this->shiftCoor(*this->speed * dt);
    8589
    8690  if (this->momentum != NULL)
    87     this->shiftDir(*this->momentum * dt);
     91  {
     92    this->shiftDir((*this->momentum * dt ).getNormalized());
     93    //this->getAbsDir().debug();
     94  }
    8895}
  • branches/presentation/src/world_entities/projectiles/rail_projectile.cc

    r9167 r9169  
    3939  this->setClassID(CL_RAIL_PROJECTILE, "RailProjectile");
    4040
    41   this->loadModel("models/projectiles/test_projectile.obj", 100);
     41  this->loadModel("models/projectiles/laser_projectile.obj", 100);
    4242
    4343  this->setMinEnergy(10);
Note: See TracChangeset for help on using the changeset viewer.