Skip to content

Commit

Permalink
Merge pull request #2348 from keveleigh/Retarget2159
Browse files Browse the repository at this point in the history
[June retarget] Fix for choosing closest grabbable object to grab
  • Loading branch information
David Kline authored Jun 26, 2018
2 parents 81218ea + 218946b commit 08addb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ protected virtual void SortAvailable()
{
contactObjects.Sort(delegate (BaseGrabbable b1, BaseGrabbable b2)
{
return Vector3.Distance(b1.GrabPoint, GrabHandle.position).CompareTo(Vector3.Distance(b1.GrabPoint, GrabHandle.position));
return Vector3.Distance(b1.GrabPoint, GrabHandle.position).CompareTo(Vector3.Distance(b2.GrabPoint, GrabHandle.position));
});
}

Expand Down

0 comments on commit 08addb6

Please sign in to comment.