MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

[MRTK3] More spatial manipulation constraints

Open chrystianfarias opened this issue 3 years ago • 3 comments

Overview

Add Rotation Axis Constraint and Min Max Move Constraint to Mixed Reality Toolkit 3

Changes

  • Add: RotationAxisConstraint.cs;
  • Add: RotationAxisConstraint.cs.meta;
  • Add: MinMaxMoveConstraint.cs;
  • Add: MinMaxMoveConstraint.cs.meta;
  • Add: ConstraintsExamples.unity;
  • Add: ConstraintsExamples.unity.meta;

chrystianfarias avatar Jul 22 '22 19:07 chrystianfarias

CLA assistant check
All CLA requirements met.

ghost avatar Jul 22 '22 19:07 ghost

Hey @chrystianfarias! Thanks for opening this! Is there a unit test that can be brought over as well?

Zee2 avatar Jul 22 '22 21:07 Zee2

Hey @chrystianfarias! Thanks for opening this! Is there a unit test that can be brought over as well?

Not at the moment, I shared it because I was needing it for a project and I didn't have it in MRTK3 yet.

Taking advantage, I would like to show a new constraint: MinMaxMoveConstraint. It allows to block the movement through minimum and maximum coordinates, it can be used local and global coordinates depending on the selected configuration.

Along with this commit is an example scene UnityProjects/MRTKDevTemplate/Assets/Scenes/ConstraintsExamples.unity that can be updated later with the other constraints.

preview

chrystianfarias avatar Jul 22 '22 22:07 chrystianfarias

Super sorry we passed over this PR! We ended up porting over all of the remaining constraints in #11085, and are looking to create a new API for constraints and solvers in MRTK3.

Thanks for your contribution!

RogPodge avatar Oct 11 '22 17:10 RogPodge