Changeset 5258 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Sep 25, 2005, 7:29:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.