VR 콘텐츠 기초 27

[Meta Quest, VR, Oculus] 던지기(Throw an Object)

1. Interaction SDK 초기설정과 잡기(Create Hand Grab Interactions)를 설정 완료해야한다. 2. Cube에 Physics Grabbable을 추가해준다. (Grabbable 삭제 X) 3. Physics Grabbable에서 Grabbable, Rigidbody에 Cube를 추가해준다. 4. Hand Grab Interactable이나 Grab Interactable의 하단 Optionals를 펼쳐서 Physics Grabbable에 Cube를 추가한다. 5. OVRInteraction > OVRHands > LeftHand 의 자식으로 HandVelocityCalculator prefab을 추가해준다. 6. LeftHand > HandInteractorsLeft > ..

VR 콘텐츠 기초 2023.10.20

[Meta Quest, VR, Oculus] 잡기(Create Grab Interactions) - 초기설정

1. Interaction SDK 초기설정을 마쳐야함 2. OVRCameraRig > OVRInteraction > OVRHands> LeftHand > HandInteractorsLeft 에 HandGrabInteractor를 넣어준다. 3. Right에도 마찬가지로 해준다. 4. HandGrabInteractor를 HandInteractorsLeft의 Best Hove Interactor Group의 Interactors로 넣어준다. 5. Right에도 마찬가지로 해준다. 6. OVRControllerHands와 OVRControllers도 마찬가지이다. 7. Cube를 생성해주고 Box Collider의 is Trigger를 체크해준다. 8. Cube에 Rigidbody를 추가해주고 Use Grav..

VR 콘텐츠 기초 2023.10.20

[Meta Quest, VR, Oculus] OVRCameraRig 설정, Interaction SDK 시작하기

https://developer.oculus.com/documentation/unity/unity-isdk-getting-started/ Getting Started with Interaction SDK | Oculus Developers developer.oculus.com 1. OVRCameraRig 추가 , MainCamera 삭제 2. OVRCameraRig의 Inscpector> OVRManager에서 Tracking Origin Type을 Floor Type으로 변환 3. OVRCameraRig의 자식으로 OVRInteraction 추가 4. OVRCameraRig의 Inspector> Hand Tracking Suppor, Hand Tracking Frequency, Hand Tracking..

VR 콘텐츠 기초 2023.10.20

OculusVR - 큐브 만지면 가운데 있는 큐브 색 변경

큐브 색 조정 만지면 가운데 큐브가 그 내가 만진 큐브의 색으로 변하게 만들어줬다. 대리자사용 X using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Cube : MonoBehaviour { [SerializeField] private Material matUnSelect; [SerializeField] private Material matSelect; [SerializeField] private TestCube cube; private MeshRenderer meshRenderer; private void Start() { this.meshRenderer = this..

VR 콘텐츠 기초 2023.10.20

OVRCameraRig, OVRHandPrefab, OVRHands - 초기설정

https://developer.oculus.com/documentation/unity/unity-isdk-getting-started Getting Started with Interaction SDK | Oculus Developers developer.oculus.com https://developer.oculus.com/documentation/unity/unity-isdk-create-hand-grab-interactions/ Create Grab Interactions | Oculus Developers developer.oculus.com LeftHandAnchor와 RightHandAnchor에만 붙여서 사용하면됌 핸드트래킹 설정 OVRHandPrefab 설정 큐브 설정 VR 버튼 using..

VR 콘텐츠 기초 2023.10.19

InMindVR - OnGvrPointerHover, OnPointerEnter, OnPointerExit Hover[보는 상태일 때 Infomation 창 띄우기], Enter[들어갔을 때 btnYes or No를 봤으면 Popup창을 띄우거나 안띄우기], Exit[Popup창 삭제하기]

Player의 Body Mesh Renderer 끄기 - 360도 돌 때 내 몸이 보임 카페에 있는 GoogleVRForUnity Import하기 메인카메라에 부착 대리자 사용 X 일단 구현을 해봤고, 잘되었다. using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class Car : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IGvrPointerHoverHandler { [SerializeField] private PlayerAI playerAi; [Serial..

VR 콘텐츠 기초 2023.10.18

InMindVR - AI Navigation, NavMeshAgent, NavMeshSurface, WayPoint 이동

using System; using System.Collections; using System.Collections.Generic; using System.Text; using UnityEngine; public class Player : MonoBehaviour { [SerializeField] private Transform[] wayPoints; [SerializeField] protected float moveSpeed = 1f; protected Transform nextPoint; protected System.Action onMoveComplete; protected Coroutine coroutine; protected Queue queue = new Queue(); void Start()..

VR 콘텐츠 기초 2023.10.18