LEAPMotion VR 各种手势的判断~
Created by miccall (转载请注明出处)

1.手划向左边
protected bool isMoveLeft (Hand hand) // 手划向左边
{
return hand.PalmVelocity.x < -deltaVelocity && !isStationary (hand);
}
[Tooltip ("Velocity (m/s) move toward ")]
protected float deltaVelocity = 0.7f;
2.手划向右边
protected bool isMoveRight (Hand hand)// 手划向右边
{
return hand.PalmVelocity.x > deltaVelocity && !isStationary (hand);
}
[Tooltip ("Velocity (m/s) move toward ")]
protected float deltaVelocity = 0.7f;
3.手划向上边
protected bool isMoveUp (Hand hand) //手向上
{
return hand.PalmVelocity.y > deltaVelocity && !isStationary (hand);
}
4.手划向下边
protected bool isMoveDown (Hand hand) //手向下
{