- Timestamp:
- Sep 25, 2005, 7:29:10 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/world.cc
r5256 r5258 386 386 387 387 this->sky->setParent(this->localCamera); 388 this->sky->setParentMode(PNODE_MOVEMENT); 388 389 389 390 // initialize debug coord system -
trunk/src/world_entities/npc.cc
r5257 r5258 42 42 { 43 43 if (entity->isA(CL_PROJECTILE)) 44 { 44 45 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 } 48 53 } 49 54
Note: See TracChangeset
for help on using the changeset viewer.