Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5258 in orxonox.OLD


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)

Location:
trunk/src
Files:
2 edited

Legend:

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

    r5256 r5258  
    386386
    387387  this->sky->setParent(this->localCamera);
     388  this->sky->setParentMode(PNODE_MOVEMENT);
    388389
    389390  // initialize debug coord system
  • 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.