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

MRTK v2 , taptoplace and tagalone

Open StarWardo opened this issue 7 years ago • 6 comments

Could we add the taptoplace and tagalong scripts from the old toolkit into the new one?

These are very useful for prototyping.

StarWardo avatar Mar 19 '19 14:03 StarWardo

@StarWardo check out this Issue #3576

Alexees avatar Mar 20 '19 10:03 Alexees

@StarWardo Please check out Sovlers https://github.com/Microsoft/MixedRealityToolkit-Unity/tree/mrtk_release/Assets/MixedRealityToolkit.SDK/Features/Utilities/Solvers With Radial View solver or Orbital solver, you can easily achieve tag-along behavior with various configurable options such as lerping timing.

Example scene https://github.com/Microsoft/MixedRealityToolkit-Unity/tree/mrtk_release/Assets/MixedRealityToolkit.Examples/Demos/Solvers/Scenes

cre8ivepark avatar Mar 21 '19 00:03 cre8ivepark

Thank you for pointing that out, the solvers are indeed what I am looking for. Very usefull!

StarWardo avatar Mar 21 '19 09:03 StarWardo

Hello. I checked out the solver examples with different settings but couldn't find one that acts similarly as HoloToolkit's TapToPlace. Do you have suggestion on what I should try? Thank you!

megatran avatar May 14 '19 02:05 megatran

@megatran, I used the "Interactable" script and the "Orbital" solver components.

I then did a little bit of configuring to make it work how I want it to:

I set up the interactable component to be a toggle button by changing the dimensions to equal 2. I then selected the "InteractableOnToggleReceiver" Event Type. Then I created a script that has two methods, one that turns on the solver and one that turns off the solver. (This is pretty easy, just get a reference to the "SolverHandler" and then change the boolean "UpdateSolvers" to true or false.) On the "OnSelect()", I have it set up to call the method that turns on the solver. On the "On Deselect()", I have it set up to call the method that turns off the solver.

I hope this helps!

DrewLovejoy avatar May 22 '19 13:05 DrewLovejoy

@DrewLovejoy Can you please share the script or exact procedure for the same. I am not able to figure out how to use Tap To Place in Hololens 1 using mrtk v 2.2.0 Thanks in advance.

iotMice avatar Jan 31 '20 12:01 iotMice