Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix simulated motion controller grab #11272

Conversation

jloehr
Copy link
Contributor

@jloehr jloehr commented Dec 6, 2022

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
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.

None yet

2 participants