Exemplo n.º 1
0
 void Update()
 {
     if (Input.GetKeyDown(moveKey))
     {
         ik.moveDexterToIK(dexter);
     }
     if (Input.GetKeyDown(resetKey))
     {
         dexter.sendStringToDexter("a 0 0 0 0 0;");
     }
 }
Exemplo n.º 2
0
 void MoveEffectorPositionRotation(Vector3 position, Quaternion rotation)
 {
     if (Tooltip != null)
     {
         Tooltip.position = position;
         Tooltip.rotation = rotation;
     }
     if (ghostIK != null)
     {
         ghostIK.Update();
         ghostIK.moveDexterToIK(dexterArm);
     }
 }