Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8943 in orxonox.OLD for branches/single_player_map/src/lib


Ignore:
Timestamp:
Jun 30, 2006, 3:21:44 AM (18 years ago)
Author:
patrick
Message:

model sticks to ground. no wall cd yet

Location:
branches/single_player_map/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r8940 r8943  
    121121        {
    122122          entity->shiftCoor(Vector(0.0f, -height, 0.0f));
    123 //           entity->setOnGround(true);
     123          entity->setOnGround(true);
    124124        }
    125125        // object is already in the wall
     
    131131        {
    132132          // entity is not on ground
    133 //           entity->setOnGround(false);
     133          entity->setOnGround(false);
    134134        }
    135135        break;
  • branches/single_player_map/src/lib/graphics/importer/interactive_model.h

    r8894 r8943  
    4040    virtual int getAnimation() = 0;
    4141
     42    virtual bool isAnimationFinished() { return false; }
     43
    4244    virtual void setAnimationSpeed(float speed) {}
    4345};
  • branches/single_player_map/src/lib/graphics/importer/md2/md2Model.h

    r8894 r8943  
    161161  inline int MD2Model::getAnimation() { return this->animationState.type; }
    162162  virtual void setAnimationSpeed(float speed) { this->animationSpeed = speed; }
     163  virtual bool isAnimationFinished() { return (this->animationState.currentFrame == this->animationState.endFrame )?true:false; }
    163164  /**  scales the current model @param scaleFactor: the factor [0..1] to use for scaling */
    164165  void scaleModel(float scaleFactor) { this->scaleFactor = scaleFactor;}
Note: See TracChangeset for help on using the changeset viewer.