fix floor fix initialization

This commit is contained in:
Robin Appelman
2018-04-02 13:47:02 +02:00
parent 4e1aaabe95
commit 7376aa4e80
+1 -1
View File
@@ -107,7 +107,7 @@ void FixFloorTabController::eventLoopTick(vr::TrackedDevicePose_t* devicePoses)
floorOffsetZ = tempOffsetZ;
LOG(INFO) << "Fix Floor and adjust playspace center: Floor Offset = [" << floorOffsetX << ", " << floorOffsetY << ", " << floorOffsetZ << "]";
float offset[3];
float offset[3] = { 0, 0, 0 };
offset[1] = floorOffsetY;
if (state == 2) {
offset[0] = floorOffsetX;