Changeset 8812 in orxonox.OLD for branches/single_player_map
- Timestamp:
- Jun 26, 2006, 6:02:02 PM (18 years ago)
- Location:
- branches/single_player_map/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc
r8796 r8812 1 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 4 4 Copyright (C) 2004 orx 5 5 6 6 This program is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU General Public License as published by 8 8 the Free Software Foundation; either version 2, or (at your option) 9 9 any later version. 10 10 11 11 ### File Specific: 12 12 main-programmer: Patrick Boenzli … … 66 66 Vector height; 67 67 AABB* box = collision->getEntityB()->getModelAABB(); 68 69 70 68 69 70 71 71 if(box!=NULL) 72 72 height = ( ce->getCollisionPosition() - collision->getEntityB()->getAbsCoor() )*(-1.0f) ; … … 90 90 return; 91 91 } 92 93 92 93 94 94 if(ce->getGroundNormal().len() >= 1.4f) { 95 95 downspeed++; … … 101 101 if(height.y > box->halfLength[1] + 0.0f ) // Above ground 102 102 { 103 if(height.y < box->halfLength[1] + 1.3f) // Snap in103 if(height.y < box->halfLength[1] + 2.3f) // Snap in 104 104 { 105 105 downspeed = 0; … … 131 131 132 132 */ 133 133 134 } 134 135 -
branches/single_player_map/src/world_entities/npcs/generic_npc.cc
r8811 r8812 160 160 this->currentAnim->addKeyFrame(this->getAbsCoor(), this->getAbsDir(), 0.0f); 161 161 this->currentAnim->addKeyFrame(this->destCoor, this->destDir, time); 162 163 this->setAnimation(RUN, MD2_ANIM_LOOP); 162 164 } 163 165
Note: See TracChangeset
for help on using the changeset viewer.