- Timestamp:
- Jul 3, 2006, 11:21:33 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/generic_npc.cc
r9003 r9026 89 89 90 90 // collision reaction registration 91 this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_ENTITY);91 // this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_ENTITY); 92 92 } 93 93 … … 524 524 525 525 // physical falling of the player 526 if( !this->isOnGround()) 527 { 528 this->fallVelocity += 300.0f * dt; 529 velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity; 530 // PRINTF(0)("%s is not on ground\n", this->getName()); 531 } 532 else 533 { 534 this->fallVelocity = 0.0f; 535 } 536 537 this->shiftCoor(Vector(0, -this->fallVelocity * dt,0)); 526 // if( !this->isOnGround()) 527 // { 528 // this->fallVelocity += 300.0f * dt; 529 // velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity; 530 // // PRINTF(0)("%s is not on ground\n", this->getName()); 531 // this->shiftCoor(Vector(0, -this->fallVelocity * dt,0)); 532 // } 533 // else 534 // { 535 // this->fallVelocity = 0.0f; 536 // } 537 538 538 539 539 540 }
Note: See TracChangeset
for help on using the changeset viewer.