Changeset 8812 in orxonox.OLD for branches/single_player_map/src/lib/collision_reaction
- Timestamp:
- Jun 26, 2006, 6:02:02 PM (18 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.