Skip to content

Commit 95547c1

Browse files
authored
Merge pull request #2481 from keveleigh/TeleportFix
Fix in TryGetBoundaryRectanglePoints after teleport
2 parents 78c3962 + 0e8a226 commit 95547c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/HoloToolkit/Boundary/Scripts/BoundaryManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public Vector3[] TryGetBoundaryRectanglePoints()
215215
var positions = new Vector3[points2d.Length];
216216
for (int i = 0; i < points2d.Length; ++i)
217217
{
218-
positions[i] = new Vector3(points2d[i].x, boundaryFloor, points2d[i].y);
218+
positions[i] = CameraCache.Main.transform.parent.TransformPoint(new Vector3(points2d[i].x, boundaryFloor, points2d[i].y));
219219
}
220220
return positions;
221221
}

0 commit comments

Comments
 (0)