Skip to content

Commit 42819d2

Browse files
authored
Merge pull request #372 from barmyard/patch-1
Fix object orientation being rotated 180 degrees
2 parents fd2b5d3 + 723be43 commit 42819d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/HoloToolkit/Input/Scripts/Interactions/HandDraggable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private void UpdateDragging()
192192

193193
if (IsOrientTowardsUser)
194194
{
195-
draggingRotation = Quaternion.LookRotation(pivotPosition - HostTransform.position);
195+
draggingRotation = Quaternion.LookRotation(HostTransform.position - pivotPosition);
196196
}
197197
else
198198
{

0 commit comments

Comments
 (0)