Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 16, 2005, 11:28:13 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: loadModel in Projectiles

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

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

    r5049 r5053  
    4343void NPC::collidesWith(WorldEntity* entity, const Vector& location)
    4444{
    45   PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getName(), entity->getName(), location.x, location.y, location.z);
     45  if (entity->isA(CL_PROJECTILE))
     46    PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getName(), entity->getName(), location.x, location.y, location.z);
    4647}
    4748
  • orxonox/trunk/src/world_entities/weapons/test_gun.cc

    r5049 r5053  
    118118  this->setClassID(CL_TEST_GUN, "TestGun");
    119119
    120   this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);
     120//  this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);
     121
     122  this->loadModel("models/guns/test_gun.obj");
    121123
    122124  this->setStateDuration(WS_SHOOTING, .3);
Note: See TracChangeset for help on using the changeset viewer.