I'm having a lot of trouble finding a way on how to determine if my hand is facing up or facing down. Can anyone help me please. This is what i obtain from reading the document. I'm sorry i'm just a new to programming in c#. Can anyone help me please.
using UnityEngine;
using System.Collections;
using Leap;
using Leap.Unity;
public class SAOPopUpHand : MonoBehaviour {
LeapProvider provider;
// Use this for initialization
void Start () {
provider = FindObjectOfType<LeapProvider>() as LeapProvider;
}
// Update is called once per frame
void Update () {
Frame frame = provider.CurrentFrame;
Hand hand = frame.Hands [0];
Vector position = hand.PalmPosition;
Vector direction = hand.Direction;
Debug.Log ("The position of hand is" + position + "The direction of hand is" + direction);
}
}