Changeset 4424 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 31, 2005, 7:19:48 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/coord
- Files:
-
- 2 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 } -
orxonox/trunk/src/lib/coord/pilot_node.h
r4423 r4424 33 33 bool bRight; //!< right button pressed. 34 34 35 int pitch; 36 int roll; 37 35 38 Vector* velocity; //!< the velocity of the player. 36 39 float travelSpeed; //!< the current speed of the player (to make soft movement)
Note: See TracChangeset
for help on using the changeset viewer.