Created
March 21, 2018 10:45
-
-
Save arun02139/895e30ed8e7a6302c951d9217364688a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (obj.state.source.handedness == InteractionSourceHandedness.Right) | |
{ | |
_rHandIKTarget.position = controllerState.GripPosition; | |
var offset = controllerState.GripRotation; | |
offset = new Quaternion(0, 0, offset.z, 0); | |
_rHandIKTarget.rotation = controllerState.GripRotation * offset; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment