개발/Unity
-
Unity/Oculus DistanceGrabber 물건 집어오는 동안 충돌 무시하게 하기개발/Unity 2020. 1. 17. 13:21
DistanceGrabber.cs 의 MoveGrabbedObject 함수를 수정 protected override void MoveGrabbedObject(Vector3 pos, Quaternion rot, bool forceTeleport = false) { if (m_grabbedObj == null) { return; } Collider[] grabbedColliders = m_grabbedObj.gameObject.GetComponentsInChildren(); Rigidbody grabbedRigidbody = m_grabbedObj.grabbedRigidbody; Vector3 grabbablePosition = pos + rot * m_grabbedObjectPosOff; Quaternio..