Changeset 8910 in orxonox.OLD for branches/single_player_map/src/lib/collision_reaction
- Timestamp:
- Jun 29, 2006, 4:03:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc
r8907 r8910 64 64 65 65 // put it back 66 // PRINTF(0)("putting it back to lastPos: \n"); 67 // this->lastPositions[0].debug(); 68 // PRINTF(0)("current pos:\n"); 69 // collision->getEntityB()->getAbsCoor().debug(); 66 PRINTF(0)("putting it back to lastPos: \n"); 67 //this->lastPositions[0].debug(); 68 PRINTF(0)("current pos:\n"); 69 collision->getEntityB()->getAbsCoor().debug(); 70 71 70 72 71 73 float height; … … 86 88 float CR_THRESHOLD = 0.2f; 87 89 88 90 //height = collPos.y - box->halfLength[1]; 91 //PRINTF(0)("height: %f , model height: %f\n", height, box->halfLength[1]); 92 // PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z); 93 // 89 94 90 95 switch( ce->getType()) 91 96 { 92 case COLLISION_TYPE_AXIS_Y: 93 94 // height = collPos.y - box->halfLength[1]; 95 // PRINTF(0)("height: %f , model height: %f\n", height, box->halfLength[1]); 96 // PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z); 97 // 97 98 case COLLISION_TYPE_AXIS_X: 99 PRINTF(0)("height: %f , model height: %f\n", height, box->halfLength[1]); 100 PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z); 101 PRINTF(0)("COLLISION_TYPE_AXIS_X \n"); 102 break; 103 case COLLISION_TYPE_AXIS_Y: 104 105 height = collPos.y - box->halfLength[1]; 106 PRINTF(0)("height: %f , model height: %f\n", height, box->halfLength[1]); 107 PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z); 108 PRINTF(0)("COLLISION_TYPE_AXIS_Y \n"); 98 109 // // object is beneath the plane (ground) 99 110 // if( height <= 0.0f ) … … 107 118 // } 108 119 // break; 109 // 110 111 case COLLISION_TYPE_AXIS_X:120 break; 121 122 112 123 case COLLISION_TYPE_AXIS_Z: 113 break; 124 PRINTF(0)("height: %f , model height: %f\n", height, box->halfLength[1]); 125 PRINTF(0)(" ground normal: %f, %f, %f\n", normal.x, normal.y, normal.z); 126 PRINTF(0)("COLLISION_TYPE_AXIS_Z \n"); 127 break; 114 128 115 129 }
Note: See TracChangeset
for help on using the changeset viewer.