Changeset 4424 in orxonox.OLD for orxonox/trunk/src/lib/coord/pilot_node.cc
- Timestamp:
- May 31, 2005, 7:19:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/pilot_node.cc
r4423 r4424 82 82 Vector move = accel * time; 83 83 this->shiftCoor (move); 84 85 Quaternion q1(M_PI/4 * this->pitch/400.0, Vector(1,0,0)); 86 this->shiftDir(q1); 84 87 } 88 85 89 86 90 void PilotNode::process( const Event &event) … … 106 110 PRINTF(0)("Mouse moved by %d,%d to (%d,%d)\n", event.xRel, event.yRel, 107 111 event.x, event.y); 112 this->pitch = event.x - 400; 113 this->roll = event.y - 300; 108 114 } 109 115 }
Note: See TracChangeset
for help on using the changeset viewer.