Hello, I am trying to figure out a way to get the direction the left palm moves in. Here’s what I have basically:
When the left index trigger is pressed, you stamp the location.
if (OVRInput.Get(OVRInput.RawButton.LIndexTrigger) && !isLeftIndexPressed)
{
isLeftIndexPressed = true;
Vector3 temp = leftHandAnchor.transform.TransformPoint(OVRInput.GetLocalControllerPosition(OVRInput.Controller.LTouch));
leftIndexPressLocation = transform.InverseTransformPoint(temp);
}
else if (!OVRInput.Get(OVRInput.RawButton.LIndexTrigger))
{
isLeftIndexPressed = false;
}
Then, while you’re holding the left trigger, you get the delta.
Vector3 temp = leftHandAnchor.transform.TransformPoint(OVRInput.GetLocalControllerPosition(OVRInput.Controller.LTouch));
Vector3 CR = transform.InverseTransformPoint(temp);
Vector3 LdeltaLocation = new Vector3(CR.x - leftIndexPressLocation.x, CR.y - leftIndexPressLocation.y, CR.z - leftIndexPressLocation.z);
However, I don’t exactly know how to tell which way the palm is facing while doing this. I basically want to move an object in this tracking space by the amount of LdeltaLocation in the direction the palm is facing.
Thanks in advance for the help