Fixed floor calibration messing up chaperone bounds y-coordinates.

This commit is contained in:
2016-12-14 21:57:06 +01:00
parent 496c8a26f8
commit 3fce6e8521
+2 -2
View File
@@ -67,7 +67,7 @@ void FixFloorTabController::eventLoopTick(vr::TrackedDevicePose_t* devicePoses)
} else if (measurementCount >= 25) {
floorOffset = -controllerUpOffsetCorrection + (float)(tempOffset / (double)measurementCount);
LOG(INFO) << "Fix Floor: Floor Offset = " << floorOffset;
parent->AddOffsetToUniverseCenter(vr::TrackingUniverseStanding, 1, floorOffset);
parent->AddOffsetToUniverseCenter(vr::TrackingUniverseStanding, 1, floorOffset, false);
statusMessage = "Fixing ... OK";
statusMessageTimeout = 1.0;
emit statusMessageSignal();
@@ -112,7 +112,7 @@ void FixFloorTabController::fixFloorClicked() {
}
void FixFloorTabController::undoFixFloorClicked() {
parent->AddOffsetToUniverseCenter(vr::TrackingUniverseStanding, 1, -floorOffset);
parent->AddOffsetToUniverseCenter(vr::TrackingUniverseStanding, 1, -floorOffset, false);
LOG(INFO) << "Fix Floor: Undo Floor Offset = " << -floorOffset;
floorOffset = 0.0f;
statusMessage = "Undo ... OK";