Changeset 10758 in orxonox.OLD for branches/presentation/src/world_entities/npcs/actionbox_enemy.cc
- Timestamp:
- Jun 21, 2007, 1:37:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/actionbox_enemy.cc
r10749 r10758 283 283 fw.normalize(); 284 284 fw = fw * 100; 285 285 286 286 Vector mp = this->getAbsCoor(); 287 287 Vector op = mp + fw; 288 288 289 289 Vector targetPos = State::getPlayer()->getPlayable()->getAbsCoor(); 290 290 Vector dv = targetPos - this->getAbsCoor(); … … 292 292 dv *= 100; 293 293 dv += mp; 294 294 295 295 Vector spUp = this->getAbsDir().inverse().apply( this->getAbsDir().apply( Vector( 0, 1, 0 ) ) ); 296 296 spUp.normalize(); 297 297 spUp *= 100; 298 298 spUp += mp; 299 299 300 300 Vector up = fw.cross( dv ); 301 301 up += mp; 302 302 303 303 //PRINTF(0)("DEBUG\n"); 304 304 //mp.debug(); 305 305 //op.debug(); 306 306 307 307 glMatrixMode(GL_MODELVIEW); 308 308 glPushMatrix();
Note: See TracChangeset
for help on using the changeset viewer.