본문 바로가기
반응형

unity42

[unity + leap motion project] 립모션 제스처 만들기 프로젝트 5번째 정리 1. 공이 포물선을 그린다. 2. 공이 손에 쥐어줬다가 다시 빠져나간다. 1) 공이 포물선을 그린다. 비스듬히 던져 올린 물체는 수평 방향으로는 공기의 저항을 무시 할 때 아무런 힘이 작용하지 않으므로 수평방향으로는 등속 운동을 하게 되고 수직방향으로는 중력만이 작용하므로 지구중심방향으로 등가속도 운동을 하게 되는 운동을 포물선 운동이라고 합니다. x 축은 등속운동을 하므로 시간이 지남에 따라 일정한 거리만큼 x축의 이동거리를 증가시켜 주면 될 것이고, y축은 중력가속도가 작용하므로 이동거리가 점차 작아지다가 최고 꼭짓점을 지나면 이동거리가 다시 증가합니다. 위에 공식을 역으로 이용하여 거리가 정해져 있다고 가정하에 포물선 방정식에서 속도를 반대로 구하면 시간당 움직이는 X.. 2020. 4. 20.
[unity + leap motion project] 립모션 제스처 만들기 프로젝트 4번째 정리 3번째 프로젝트의 오류 보완과 공의 움직임 보완하여 다시 짠 코드 using System.Collections; using System.Collections.Generic; using UnityEngine; using Leap; using Leap.Unity; public class j2 : MonoBehaviour { Frame frame; Controller controller; public GameObject ball1; public GameObject R, L; Rigidbody rigid; Vector v, vr; bool check = true; bool a = false; void Start() { controller = new Controller(); rigi.. 2020. 3. 25.
[unity + leap motion project] 립모션 제스처 만들기 프로젝트 2번째 정리 3. 립모션에서 손의 특징 얻기 / 립모션에서 손의 정보 얻기 / 립모션에서 손의 데이터 얻기 isRight, isLeft — Whether the hand is a left or a right hand. Palm Position — The center of the palm measured in millimeters from the Leap Motion origin. Palm Velocity — The speed and movement direction of the palm in millimeters per second. Palm Normal — A vector perpendicular to the plane formed by the palm of the hand. The vector points dow.. 2020. 3. 17.
[unity + leap motion project] 립모션 제스처 만들기 프로젝트 1번째 정리 결과 동영상 : https://youtu.be/jomCSk_XdIk 기본 립모션 인식 동영상 보다싶이 잘 작동하는 듯 잘 작동 못하는 듯합니다. 1. 립모션에서 프레임을 가져오는 방법 Frame : The Frame object is essentially the root of the data model and provides access to all the tracked entities. A new Frame is created at each update interval. 프레인 객체에는 기본적으로 데이터 모델의 루트이며 모든 추적 된 개체에 액세스 할 수 있습니다. 업데이트 간격마다 새로운 프레임이 생성됩니다. 사용 방식 : Controller controll.. 2020. 3. 16.
반응형