Skip to content

Commit b444145

Browse files
Fix RotateAboutObjectCentre bug
1 parent b20aa92 commit b444145

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/Manipulation/ManipulationMoveLogic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public Vector3 Update(MixedRealityPose pointerCentroidPose, Quaternion objectRot
6969
}
7070
else
7171
{
72-
return pointerCentroidPose.Position + pointerCentroidPose.Rotation * pointerLocalGrabPoint + grabToObject * distanceRatio;
72+
return pointerCentroidPose.Position + pointerCentroidPose.Rotation * (pointerLocalGrabPoint + grabToObject) * distanceRatio;
7373
}
7474
}
7575

Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/MinMaxScaleConstraint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.MixedReality.Toolkit.UI
1010
/// Component for setting the min/max scale values for ManipulationHandler
1111
/// or BoundingBox
1212
/// </summary>
13-
[AddComponentMenu("Scripts/MRTK/SDK/TransformScaleHandler")]
13+
[AddComponentMenu("Scripts/MRTK/SDK/MinMaxScaleConstraint")]
1414
public class MinMaxScaleConstraint : TransformConstraint
1515
{
1616
#region Properties

0 commit comments

Comments
 (0)