- Timestamp:
- Jan 24, 2007, 5:32:31 PM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r10319 r10340 312 312 PNode::getNullParent()->updateNode(0.01); 313 313 314 bool bNoDraw = true; 314 315 315 316 while( this->bRunning) /* @todo implement pause */ … … 342 343 this->update (); 343 344 /* draw everything */ 344 this->display (); 345 345 if( bNoDraw) 346 this->display (); 347 348 bNoDraw= !bNoDraw; 346 349 } 347 350 -
trunk/src/world_entities/creatures/fps_player.cc
r10331 r10340 129 129 wpRight->setName("testGun Right"); 130 130 this->addWeapon(wpRight,1, 0); 131 132 this->aimingSystem = new AimingSystem(this);133 131 wpRight->addChild(this->aimingSystem); 134 132 135 133 this->toList( OM_PLAYERS ); 136 134 } 135 136 this->aimingSystem = new AimingSystem(this); 137 137 138 138 … … 242 242 243 243 244 //if( this->aimingSystem != NULL)245 //{246 //this->aimingSystem->toList(OM_GROUP_01);247 //this->aimingSystem->setParent(&this->cameraNode);248 //// this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);249 //this->aimingSystem->setRelDir(Quaternion(M_PI_4*-0.58f, Vector(0,0,1)));250 //this->aimingSystem->setRelCoor(0, -1, -1);251 //}244 if( this->aimingSystem != NULL) 245 { 246 this->aimingSystem->toList(OM_GROUP_01); 247 this->aimingSystem->setParent(&this->cameraNode); 248 // this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE); 249 this->aimingSystem->setRelDir(Quaternion(M_PI_4*-0.58f, Vector(0,0,1))); 250 this->aimingSystem->setRelCoor(0, -1, -1); 251 } 252 252 253 253 … … 302 302 yMouse *= time ; 303 303 304 heading -= xMouse ;305 attitude-= yMouse ;304 heading -= xMouse/5.; 305 attitude-= yMouse/5.; 306 306 307 307 … … 373 373 374 374 // physical falling of the player 375 if( /*FIXME for testing*/ false &&!this->isOnGround())375 if( !this->isOnGround()) 376 376 { 377 377 this->fallVelocity += 300.0f * time;
Note: See TracChangeset
for help on using the changeset viewer.