0817 : Hand Tracking
* 지난 주 요약 1. 큐브 2. 비둘기 3. 손 트레킹 * 이번 주 할 일 1. 비둘기 밥주기 canIGrab 랑 canIPlace 기능이 뭔지 까먹었어,,. using System.Collections ; using System.Collections.Generic ; using UnityEngine ; using UnityEngine.XR.MagicLeap ; public class HandTrackScript : MonoBehaviour { public enum HandPoses { Ok, Finger, Thumb, OpenHand, Pinch, NoPose }; public HandPoses pose = HandPoses.NoPose; public Vector3[] pos; public GameObject sphereThumb, sphereIndex, sphereWrist, ObjectToPlace; private MLHandTracking.HandKeyPose[] _gestures; bool canIPlace = false ; bool canIGrab = false ; public GameObject selectedGameObject; private void Start () { MLHandTracking.Start(); _gestures = new MLHandTracking.HandKeyPose[ 5 ]; _gestures[ 0 ] = MLHandTracking.HandKeyPose.Ok; _gestures[ 1 ] = MLHandTracking.HandKeyPose.Finger; _gestures[ 2 ] = MLHandTracking.HandKeyPose.O...
댓글
댓글 쓰기