Changeset 10158 in orxonox.OLD for branches/ai/src/ai/movement_module.cc
- Timestamp:
- Jan 2, 2007, 9:47:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ai/src/ai/movement_module.cc
r10138 r10158 202 202 Vector vectorToDestination=destination-myPosition; 203 203 204 Vector correction=playerCollision*50+npcCollision*50+vectorToDestination+Vector(0,0,0)-myMovement; 204 Vector correction= playerCollision*50*3 205 + npcCollision*50*3 206 + Vector(0,0,0) 207 + destinationMovement*2//-myMovement 208 + (vectorToDestination-myMovement)*3; 205 209 206 210 correction.y=0; … … 225 229 //myNPC->setAbsDir( Quaternion( view, Vector(0,1,0))); 226 230 myNPC->setAbsDirSoft( Quaternion( view, Vector(0,1,0)),3); 231 movement=myMovement; 227 232 } 228 233
Note: See TracChangeset
for help on using the changeset viewer.