Skip to content

Commit

Permalink
Do not scale basis of transform with world scale!
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanOlij authored and m4gr3d committed Jun 24, 2022
1 parent 947b1e5 commit 32d9510
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/openxr/OpenXRApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3804,7 +3804,6 @@ TrackingConfidence OpenXRApi::transform_from_location(const XrSpaceLocation &p_l
TrackingConfidence confidence = _transform_from_location(p_location, t);
if (confidence != TRACKING_CONFIDENCE_NONE) {
// only update if we have tracking data
t.basis *= p_world_scale;
r_transform = t;
}
return confidence;
Expand All @@ -3815,7 +3814,6 @@ TrackingConfidence OpenXRApi::transform_from_location(const XrHandJointLocationE
TrackingConfidence confidence = _transform_from_location(p_location, t);
if (confidence != TRACKING_CONFIDENCE_NONE) {
// only update if we have tracking data
t.basis *= p_world_scale;
r_transform = t;
}
return confidence;
Expand Down

0 comments on commit 32d9510

Please sign in to comment.