Changeset 289 in flair-src
- Timestamp:
- Jan 8, 2019, 3:18:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/UavVrpnObject_impl.cpp
r286 r289 80 80 input->ReleaseMutex(); 81 81 82 //use yaw rotation from earth to vrpn 83 Quaternion yaw_rot_quat; 84 Euler yaw_rot_euler(0, 0, getSimulator()->Yaw()); // yaw_rad is vrpn rotation in earth reference 85 yaw_rot_euler.ToQuaternion(yaw_rot_quat); 86 vrpnPosition.Rotate(yaw_rot_quat); 87 vrpnQuaternion= yaw_rot_quat * vrpnQuaternion; 88 82 89 vector3df nodePosition; 83 90 Quaternion nodeQuaternion; 84 91 Euler nodeEuler; 85 92 93 //transform form earth to irrlicht 86 94 nodePosition = ToIrrlichtCoordinates(vrpnPosition); 87 95 setPosition(nodePosition);
Note:
See TracChangeset
for help on using the changeset viewer.