Changeset 6797 in orxonox.OLD for branches/network/src/world_entities/space_ships
- Timestamp:
- Jan 27, 2006, 1:43:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/space_ships/space_ship.cc
r6796 r6797 687 687 SYNCHELP_WRITE_INT( mask, NWT_SS_FLAGS ); 688 688 } 689 #define __OFFSET_ROT 0.01 690 if ( fabs( oldMouseDir.w - mouseDir.w ) > __OFFSET_ROT || 691 fabs( oldMouseDir.v.x - mouseDir.v.x ) > __OFFSET_ROT || 692 fabs( oldMouseDir.v.y - mouseDir.v.y ) > __OFFSET_ROT || 693 fabs( oldMouseDir.v.z - mouseDir.v.z ) > __OFFSET_ROT ) 689 #define __OFFSET_MDIR_W 0.01 690 #define __OFFSET_MDIR_V 0.01 691 if ( fabs( oldMouseDir.w - mouseDir.w ) > __OFFSET_MDIR_W || 692 fabs( oldMouseDir.v.x - mouseDir.v.x ) > __OFFSET_MDIR_V || 693 fabs( oldMouseDir.v.y - mouseDir.v.y ) > __OFFSET_MDIR_V || 694 fabs( oldMouseDir.v.z - mouseDir.v.z ) > __OFFSET_MDIR_V ) 694 695 { 695 696 oldMouseDir = mouseDir; … … 702 703 SYNCHELP_WRITE_FLOAT( mouseDir.v.z, NWT_SS_MOUSEDIRZ ); 703 704 } 704 #define __OFFSET_VEL 5705 if ( fabs( oldVelocity.x - velocity.x ) > __OFFSET_VEL ||706 fabs( oldVelocity.y - velocity.y ) > __OFFSET_VEL ||707 fabs( oldVelocity.z - velocity.z ) > __OFFSET_VEL )705 #define __OFFSET_VEL 0.05 706 if ( fabs( oldVelocity.x - velocity.x ) > __OFFSET_VEL*velocity.x || 707 fabs( oldVelocity.y - velocity.y ) > __OFFSET_VEL*velocity.y || 708 fabs( oldVelocity.z - velocity.z ) > __OFFSET_VEL*velocity.z ) 708 709 { 709 710 oldVelocity = velocity;
Note: See TracChangeset
for help on using the changeset viewer.