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

Items need separate interaction points for left and right hands #128

Closed
jbroadway opened this issue Jan 30, 2017 · 3 comments
Closed

Items need separate interaction points for left and right hands #128

jbroadway opened this issue Jan 30, 2017 · 3 comments

Comments

@jbroadway
Copy link
Contributor

Setting an ideal interaction point for right-handed use often means it feels backwards when the same object is held by the left hand.

@jbroadway
Copy link
Contributor Author

Btw, here's how we're solving this for now:

using UnityEngine;
using System.Collections;
using NewtonVR;

public class HandedInteractableItem : NVRInteractableItem
{
	[SerializeField]
	Transform LeftHandInteractionPoint;

	[SerializeField]
	Transform RightHandInteractionPoint;

	public override void BeginInteraction (NVRHand hand)
	{
		if (hand.IsLeft)
		{
			InteractionPoint = LeftHandInteractionPoint;
		}
		else
		{
			InteractionPoint = RightHandInteractionPoint;
		}

		base.BeginInteraction (hand);
	}
}

@jbroadway
Copy link
Contributor Author

Submitted a PR for this in #137

@zite
Copy link
Member

zite commented May 12, 2017

Going to close this as an issue. It's on the trello board.

@zite zite closed this as completed May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants