Skip to content

Commit

Permalink
Merge pull request ExtendRealityLtd#1411 from thestonefox/fix/drawer-…
Browse files Browse the repository at this point in the history
…rotation-force

fix(Controls): ensure drawer snap force handles rotation correctly - fixes ExtendRealityLtd#1397
  • Loading branch information
thestonefox authored Aug 11, 2017
2 parents c184e47 + a493d9b commit d919749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/VRTK/Scripts/Controls/3D/VRTK_Drawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected override bool DetectSetup()
}
if (drawerSnapForceCreated)
{
drawerSnapForce.force = GetThirdDirection(drawerJoint.axis, drawerJoint.secondaryAxis) * (subDirection * -50f);
drawerSnapForce.force = transform.TransformDirection(drawerJoint.axis) * (subDirection * 50f);
}

return true;
Expand Down

0 comments on commit d919749

Please sign in to comment.