본문 바로가기

XR/Unity3D7

Oculus Quest 구매 전 알아봤던 정보 (당시 품절) 연구실에서 Quest 구매를 하기 위해 알아봤던 정보를 워드에 정리해두었었다. 이미 구매했기 때문에 워드 파일을 삭제해버릴까 했는데,,, 시간 들여 찾아봤던 정보를 삭제하자니 아쉬워서 티스토리에라도 남겨두려고 한다. ㅎㅎㅎ https://developer.oculus.com/documentation/unity/unity-handtracking/?device=QUEST Hand Tracking in Unity | Oculus Developers The element contains two attributes: android:name="oculus.software.handtracking" and android:required with a boolean value. When the app supports co.. 2020. 11. 9.
Unity 3D에서 object 색상 지정하기 object 이름이 Panel 일 때, 아래 c# 코드를 이용하면 오브젝트 색상을 지정할 수 있다! public GameObject Panel; Panel.GetComponent().material.color = Color.blue; 2020. 11. 8.
유니티에서 벡터 사잇각 찾기 Vector3 from = new Vector3(0, 0, -1);Vector3 to = new Vector3(0, 0, -1); a = Vector3.Angle(from, to); Vector3 p = Vector3.Cross(from, to);Vector3 q = new Vector3(0, 1, 0); //Vector3.up if(Vector3.Dot(p, q) 2019. 3. 20.
유니티 - 레이캐스팅 이용하기 Vector3 incomingVec = hit.point - transform.position;hit.point: the impact point in world space where the ray hit the collider.Debug.DrawLine(transform.position, hit.point, Color.red); //rayhit.normal: the normal of the surface the ray hit.Debug.DrawRay(hit.point, hit.normal, Color.green); //wall surface normalhit.distance //The distance from the ray's origin to the impact point.Debug.DrawRay (t.. 2018. 10. 14.
Unity - Raycast로 앞의 가까운 object 찾기 using System.Collections;using System.Collections.Generic;using UnityEngine; public class raycast_hand : MonoBehaviour {public Transform target_wall; // Use this for initializationvoid Start () { } // Update is called once per framevoid Update () {RaycastHit hit;Debug.DrawRay(transform.position, transform.forward * 2.0f, Color.red); if(Physics.Raycast(transform.position, transform.forward, out h.. 2018. 9. 30.
Unity - 여러개의 태그로 가장 가까운 물체 찾기 using System.Collections;using System.Collections.Generic;using UnityEngine; public class haptic : MonoBehaviour {public Transform target;private float dist;private string[] tags = {"static_wall", "dynamic_wall"};GameObject[] taggedWalls = {};// Use this for initializationvoid Start () {Debug.Log("start haptic");} // Update is called once per framevoid Update () {if(target != null){Debug.DrawLin.. 2018. 9. 30.
반응형