Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9027 in orxonox.OLD


Ignore:
Timestamp:
Jul 3, 2006, 11:30:17 AM (18 years ago)
Author:
patrick
Message:

npc does not yet move again. strange

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_reaction/cr_object_damage.cc

    r9025 r9027  
    5656  float damage = 0.0f;
    5757
    58   PRINTF(4)("Dealing damage - Handling collision: %s vs %s\n",
     58  PRINTF(0)("Dealing damage - Handling collision: %s vs %s\n",
    5959            collision->getEntityA()->getClassName(),
    6060            collision->getEntityB()->getClassName());
  • trunk/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r9003 r9027  
    127127        {
    128128          entity->setAbsCoor(entity->getLastAbsCoor());
     129          PRINTF(0)("ground collision: reset pos\n");
    129130        }
    130131        else
  • trunk/src/story_entities/game_world.cc

    r8894 r9027  
    308308    /* update the state */
    309309    //this->update (); /// LESS REDUNDANCY.
    310 //     PNode::getNullParent()->updateNode(this->dtS);
     310//      PNode::getNullParent()->updateNode(this->dtS);
    311311
    312312
  • trunk/src/world_entities/npcs/generic_npc.cc

    r9026 r9027  
    185185void GenericNPC::initNPC()
    186186{
     187
     188  this->unsubscribeReaction();
     189
    187190  if (!this->behaviourList.empty())
    188191  {
     
    473476          Vector dest = currentAnimation.v - this->getAbsCoor();
    474477          if (dest.len() < .5)
     478          {
    475479            this->nextStep();
     480          }
    476481          else
    477482          {
    478483            dest.y = 0.0f;
    479484            this->shiftCoor(dest.getNormalized() * currentAnimation.speed * dt);
    480 
    481485          }
    482486        }
Note: See TracChangeset for help on using the changeset viewer.