Skip to content

Instantly share code, notes, and snippets.

@arun02139
Created March 21, 2018 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun02139/895e30ed8e7a6302c951d9217364688a to your computer and use it in GitHub Desktop.
Save arun02139/895e30ed8e7a6302c951d9217364688a to your computer and use it in GitHub Desktop.
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