Skip to content

Fix simulated motion controller grab#11272

Merged
keveleigh merged 2 commits into
microsoft:releases/2.8.3from
jloehr:fix-simulated-motion-controller-grab
Dec 6, 2022
Merged

Fix simulated motion controller grab#11272
keveleigh merged 2 commits into
microsoft:releases/2.8.3from
jloehr:fix-simulated-motion-controller-grab

Conversation

@jloehr

@jloehr jloehr commented Dec 6, 2022

Copy link
Copy Markdown
Contributor

Overview

Simulated motion controller grab wasn't working in Editor, because it raised a float input event instead of a boolean.
This PR fixes this, by changing the input event to boolean, like the simulated grab for articulated hands.

Verification

Create a new scene with the MRTK rig. Make sure to use profiles that use the Motion Controller Simulation Mode (Input -> Input Data Providers -> Input Simulation Service -> Default Controller Simulation Mode: Motion Controller)
Add a simple cube to the scene with an Object Manipulator with disabled far manipulation and a NearInteractionGrabbable. In Play Mode, use either the left or right controller and the mapped grab key (Default G) to grab and move the cube.

@github-actions github-actions Bot added the MRTK2 label Dec 6, 2022
@keveleigh keveleigh changed the base branch from main to releases/2.8.3 December 6, 2022 18:04
@keveleigh keveleigh assigned keveleigh and unassigned keveleigh Dec 6, 2022
@keveleigh keveleigh merged commit e71f2c6 into microsoft:releases/2.8.3 Dec 6, 2022
@keveleigh

Copy link
Copy Markdown
Contributor

@jloehr Thanks for this fix! I've prioritized it for the upcoming 2.8.3 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants