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