Fix local_floor x offset being unset
This commit is contained in:
@@ -979,7 +979,7 @@ void scenes::stream::update_local_floor(XrTime when)
|
|||||||
};
|
};
|
||||||
xrLocateSpace(stage, local, when, &location);
|
xrLocateSpace(stage, local, when, &location);
|
||||||
|
|
||||||
XrPosef offset{{0, 0, 0, 1}, {0, location.pose.position.y, 0}};
|
XrPosef offset{{0, 0, 0, 1}, {location.pose.position.x, location.pose.position.y, 0}};
|
||||||
std::lock_guard lock(local_floor_mutex);
|
std::lock_guard lock(local_floor_mutex);
|
||||||
local_floor = session.create_reference_space(XR_REFERENCE_SPACE_TYPE_LOCAL, offset);
|
local_floor = session.create_reference_space(XR_REFERENCE_SPACE_TYPE_LOCAL, offset);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user