Exemplo n.º 1
0
    //For Initialization
    void Start()
    {
        //text = GetComponent<Text>();
        joints          = new Vector3[0];
        lastFrameJoints = new Vector3[0];
        leftHand        = _skeleton.leftHand;
        rightHand       = _skeleton.rightHand;

        leftHandHorizDisplacement  = 0f;
        rightHandHorizDisplacement = 0f;
        rightHandHorizDelay        = 0;
        leftHandHorizDelay         = 0;

        leftShoulderVertDisplacement  = 0f;
        rightShoulderVertDisplacement = 0f;
        rightShoulderVertDelay        = 0;
        leftShoulderVertDelay         = 0;

        leftHandVertDisplacement  = 0f;
        rightHandVertDisplacement = 0f;
        rightHandVertDelay        = 0;
        leftHandVertDelay         = 0;

        Detect_Wave_Right = true;
        Detect_Wave_Left  = true;
        Detect_Pump_Right = true;
        Detect_Pump_Left  = true;
        Detect_Step_Left  = true;
        Detect_Step_Right = true;
        Detect_Kick_Left  = true;
        Detect_Kick_Right = true;
        Detect_Sitting    = true;
        Detect_Shrug      = true;
        Detect_Bowing     = true;
    }
Exemplo n.º 2
0
 /**
  * Updates the Skeleton joints
  * */
 protected virtual void updateSkeleton()
 {
     if (joints.Length > 0 && (frameNumber == 60))
     {
         lastFrameJoints = joints;
     }
     joints    = _skeleton.getJoints();
     leftHand  = _skeleton.leftHand;
     rightHand = _skeleton.rightHand;
 }