Changeset 9085 in orxonox.OLD for branches/presentation/src
- Timestamp:
- Jul 4, 2006, 1:49:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/creatures/fps_player.cc
r9069 r9085 32 32 #include "debug.h" 33 33 34 #include "shared_network_data.h" 34 35 35 36 … … 141 142 registerVar( new SynchronizeableBool( &bForward, &bForward, "bForward", PERMISSION_OWNER ) ); 142 143 registerVar( new SynchronizeableBool( &bBackward, &bBackward, "bBackward", PERMISSION_OWNER ) ); 143 // registerVar( new SynchronizeableQuaternion( &mouseDir, &mouseDir, "mouseDir", PERMISSION_OWNER ) ); 144 registerVar( new SynchronizeableFloat( &heading, &heading, "heading", PERMISSION_OWNER ) ); 145 registerVar( new SynchronizeableFloat( &attitude, &attitude, "attitude", PERMISSION_OWNER ) ); 144 146 145 147 … … 216 218 Playable::tick( time ); 217 219 218 if( ( xMouse != 0 || yMouse != 0 ) /*&& this->getOwner() == this->getHostID() */)220 if( ( xMouse != 0 || yMouse != 0 ) && (this->getOwner() == SharedNetworkData::getInstance()->getHostID() || !State::isOnline() ) ) 219 221 { 220 222 xMouse *= time ; … … 230 232 attitude = -1.15; 231 233 232 this->setAbsDir(Quaternion(heading, Vector(0,1,0)));233 this->cameraNode.setRelDir(Quaternion( attitude, Vector( 0, 0, 1 ) ));234 235 234 xMouse = yMouse = 0; 236 235 } 237 236 238 // this->setAbsDir( this->mouseDir ); 237 this->setAbsDir(Quaternion(heading, Vector(0,1,0))); 238 this->cameraNode.setRelDir(Quaternion( attitude, Vector( 0, 0, 1 ) )); 239 239 240 240 Vector velocity;
Note: See TracChangeset
for help on using the changeset viewer.