Skip to content

Commit 723be43

Browse files
authored
Fix object orientation being rotated 180 degrees
When using "Oriented towards user" mode, there was a bug that the object is rotated not towards the user, but exactly from the user.
1 parent 7652af9 commit 723be43

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)