Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5258 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Sep 25, 2005, 7:29:10 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: binding of the Sky is ok again. (parenting mode wasn't there anymore)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npc.cc

    r5257 r5258  
    4242{
    4343  if (entity->isA(CL_PROJECTILE))
     44  {
    4445    PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getName(), entity->getName(), location.x, location.y, location.z);
    45   this->applyForce(Vector(0,0,0)-location*1000);
    46 //  this->setVisibiliy(false);
    47 //  State::getWorldEntityList()->remove(this);
     46    this->applyForce(Vector(0,0,0)-location*1000);
     47  }
     48  else if (entity->isA(CL_NPC))
     49  {
     50    this->setVisibiliy(false);
     51   State::getWorldEntityList()->remove(this);
     52  }
    4853}
    4954
Note: See TracChangeset for help on using the changeset viewer.