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

Scene: GrabMechanics doesn't seem to work

Open erichfrazer opened this issue 9 years ago • 9 comments

Machine: Windows 10 Fall Creators update, Unity: 2017.2. I tried this scene (GrabMechanics) in the editor, and compiled to debug, and in neither one can I pick up and control anything. Should this scene still work? And if not, I wonder if anybody has a quick answer why not? There isn't much in the scene to begin with!

erichfrazer avatar Oct 30 '17 05:10 erichfrazer

Yep, I ran this the other day to help somebody else figure it out. The problem he was running into: are you pointing at the objects to interact or actually reaching out, intersecting the blocks with your block hands, and then interacting? They were trying to point and click, but actually "grabbing" the objects is the way this sample works.

Another thing to check is to make sure you're pressing the right button. If I remember correctly, this scene works with the grasp button, not the trigger.

Let me know if it still doesn't work for you!

keveleigh avatar Oct 30 '17 15:10 keveleigh

Oop, Grab does work, you DO have to reach out and grab it w/ the chunky block. Well, this is a relief. And yeah, I'm not used to using the Grasp button. You may close this.

One thing I can't figure out is where MotionController.cs went. I see the visualizer script file, but the MotionController base script is gone. Has this been replaced with a different set of mechanics for input control? and recently?

erichfrazer avatar Oct 30 '17 16:10 erichfrazer

There's MotionControllerVisualizer and MotionControllerInfo, which contains the data about the model and animation parameters. I don't believe there's ever been a MotionController script like you describe. The controller controls are routed through InputManager events. Are you perhaps thinking of a script in the MRDL/HUX?

keveleigh avatar Oct 30 '17 16:10 keveleigh

Ah, I tagged this as a bug cause I didn't get it to work either. Good to hear.

StephenHodgson avatar Oct 30 '17 16:10 StephenHodgson

I am using the Motion Controllers from Dell. I can click and change the active controll to the controller but when I focus on an object and click the Grasp button nothing happens. Do I physically need to move the controller to the object?

hridpath avatar Nov 03 '17 22:11 hridpath

I believe so

StephenHodgson avatar Nov 03 '17 22:11 StephenHodgson

Sorry to say that even moving the controller to touch/pass through did not work. I am getting the GLTF material for my controller. I move the controller into position and click/grasp the grab button on the side of the controller. nada PS. I am running in editor viewing on HMD

hridpath avatar Nov 03 '17 22:11 hridpath

I just tried to force the use of the alternate models and still no interactions.

hridpath avatar Nov 03 '17 23:11 hridpath

Looks like there was a bug introduced with the prefab changes in the recent visualizer update. PR incoming with a fix.

keveleigh avatar Nov 04 '17 00:11 keveleigh