Changeset 10340 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 24, 2007, 5:32:31 PM (18 years ago)
- Location:
- trunk/src/world_entities/creatures
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.