mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 03:59:55 +02:00
going back to old lost tracking method
This commit is contained in:
parent
e4c79926c0
commit
ffcc3c8df9
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ void ViveControllerManager::InputDevice::handleTrackedObject(uint32_t deviceInde
|
||||||
vec3 linearVelocity = vec3();
|
vec3 linearVelocity = vec3();
|
||||||
vec3 angularVelocity = vec3();
|
vec3 angularVelocity = vec3();
|
||||||
// check if the device is tracking out of range, then process the correct pose depending on the result.
|
// check if the device is tracking out of range, then process the correct pose depending on the result.
|
||||||
if (_nextSimPoseData.vrPoses[deviceIndex].eTrackingResult == vr::TrackingResult_Running_OK) {
|
if (_nextSimPoseData.vrPoses[deviceIndex].eTrackingResult != vr::TrackingResult_Running_OutOfRange) {
|
||||||
mat = _nextSimPoseData.poses[deviceIndex];
|
mat = _nextSimPoseData.poses[deviceIndex];
|
||||||
linearVelocity = _nextSimPoseData.linearVelocities[deviceIndex];
|
linearVelocity = _nextSimPoseData.linearVelocities[deviceIndex];
|
||||||
angularVelocity = _nextSimPoseData.angularVelocities[deviceIndex];
|
angularVelocity = _nextSimPoseData.angularVelocities[deviceIndex];
|
||||||
|
|
Loading…
Reference in a new issue