- Timestamp:
- Jan 31, 2007, 7:23:36 AM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/npc.cc
r10550 r10552 81 81 this->registerObject(this, NPC::_objectList); 82 82 83 this->toList(OM_GROUP_0 1);83 this->toList(OM_GROUP_00); 84 84 this->bAIEnabled = false; 85 85 -
trunk/src/world_entities/space_ships/space_ship.cc
r10543 r10552 387 387 388 388 /// FIXME 389 this->trail = new Trail( 5, 10, .2, this);390 this->trail->setTexture( "textures/engine.png");391 392 this->trailL = new Trail( 5, 10, .2, this);393 this->trailL->setTexture( "textures/engine.png");394 395 this->trailR = new Trail( 5, 10, .2, this);396 this->trailR->setTexture( "textures/engine.png");389 // this->trail = new Trail( 5, 10, .2, this); 390 // this->trail->setTexture( "textures/engine.png"); 391 // 392 // this->trailL = new Trail( 5, 10, .2, this); 393 // this->trailL->setTexture( "textures/engine.png"); 394 // 395 // this->trailR = new Trail( 5, 10, .2, this); 396 // this->trailR->setTexture( "textures/engine.png"); 397 397 398 398 … … 499 499 WorldEntity::draw(); 500 500 501 glMatrixMode(GL_MODELVIEW);502 glPushMatrix();503 504 float matrix[4][4];505 glTranslatef (this->getAbsCoor ().x-1, this->getAbsCoor ().y-.2, this->getAbsCoor ().z);506 this->getAbsDir().matrix (matrix);507 glMultMatrixf((float*)matrix);501 // glMatrixMode(GL_MODELVIEW); 502 // glPushMatrix(); 503 504 // float matrix[4][4]; 505 // glTranslatef (this->getAbsCoor ().x-1, this->getAbsCoor ().y-.2, this->getAbsCoor ().z); 506 // this->getAbsDir().matrix (matrix); 507 // glMultMatrixf((float*)matrix); 508 508 //glScalef(2.0, 2.0, 2.0); // no double rescale 509 509 510 510 511 this->trail->draw();512 513 glTranslatef(0,0,-.5);514 this->trailL->draw();515 516 glTranslatef(0,0,1);517 this->trailR->draw();518 519 glPopMatrix();511 // this->trail->draw(); 512 513 // glTranslatef(0,0,-.5); 514 // this->trailL->draw(); 515 516 // glTranslatef(0,0,1); 517 // this->trailR->draw(); 518 519 // glPopMatrix(); 520 520 //this->debug(0); 521 521 } … … 579 579 580 580 //FIXME 581 this->trail->tick(time);582 this->trailL->tick(time);583 this->trailR->tick(time);581 // this->trail->tick(time); 582 // this->trailL->tick(time); 583 // this->trailR->tick(time); 584 584 585 585 if (!this->isTravelDistanceInit) … … 1143 1143 void SpaceShip::setCameraDistance(float dist) 1144 1144 { 1145 1145 1146 1146 CameraMan* cm = State::getCameraman(); 1147 1147 Camera* c = cm->getCurrentCam(); 1148 1148 c->setViewTopDistance(dist); 1149 1149 1150 1150 if (this->hasPlayer()) 1151 1151 this->isTravelDistanceInit = false; … … 1154 1154 void SpaceShip::setCameraFovy(float fovy) 1155 1155 { 1156 1156 1157 1157 CameraMan* cm = State::getCameraman(); 1158 1158 Camera* c = cm->getCurrentCam(); 1159 1159 c->setViewTopFovy(fovy); 1160 1160 1161 1161 if (this->hasPlayer()) 1162 1162 this->isTravelDistanceInit = false; … … 1167 1167 CameraMan* cm = State::getCameraman(); 1168 1168 Camera* c = cm->getCurrentCam(); 1169 1170 1169 1170 1171 1171 float x = 1.25 * this->actionWidthPercentage * fabsf(c->getAbsCoor().y) * tan(c->getFovy()*M_PI /360.0); 1172 1172 float y = x / c->getAspectRatio() / this->actionWidthPercentage;
Note: See TracChangeset
for help on using the changeset viewer.