- Home /
Question by
tocu-adrian · Apr 07, 2017 at 03:04 PM ·
convertcoordinatescoordinate-system
Convert Leap Motion coordinate
Hello. I want to instantiate some objects to the position of my hand: void Update() { if (controller.IsConnected) { Frame frame = controller.Frame();
if (frame.Hands.Count > 0)
{
List<Hand> hands = frame.Hands;
Hand firstHand = hands[0];
palmPosition = firstHand.PalmPosition;
Vector3 transformPosition = palmPosition.ToVector3();
Instantiate(gameObject, transformPosition, transform.rotation);
Debug.Log(transformPosition);
}
}
}
The problem is that the LM coordinates and World coordinates are not the same...is there any chance to convert the LM coordinates ?
Comment