Skip to content

Commit bb9d816

Browse files
committed
Fix a scale offset bug
1 parent 7028e07 commit bb9d816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit-SDK/Features/Utilities/Solvers/SolverHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private Transform MakeOffsetTransform(Transform parentTransform)
207207
transformWithOffset.transform.parent = parentTransform;
208208
}
209209

210-
transformWithOffset.transform.localPosition = AdditionalOffset;
210+
transformWithOffset.transform.localPosition = Vector3.Scale(AdditionalOffset, transformWithOffset.transform.localScale);
211211
transformWithOffset.transform.localRotation = Quaternion.Euler(AdditionalRotation);
212212
transformWithOffset.name = string.Format("{0} on {1} with offset {2}, {3}", gameObject.name, TrackedObjectToReference.ToString(), AdditionalOffset, AdditionalRotation);
213213
return transformWithOffset.transform;

0 commit comments

Comments
 (0)