Example #1
0
    private void RaycastDefault(GvrBasePointer pointer, PointerEventData eventData, List <RaycastResult> resultAppendList)
    {
        lastRay = GvrBasePointer.CalculateRay(pointer, pointer.raycastMode);
        float radius = pointer.CurrentPointerRadius;

        PerformRaycast(lastRay, radius, eventData, resultAppendList);
    }
Example #2
0
 public static Ray GetRay()
 {
     if (UseMouse)
     {
         return(GvrPointerInputModule.Pointer.PointerCamera.ScreenPointToRay(Input.mousePosition));
     }
     else
     {
         return(GvrBasePointer.CalculateRay(GvrPointerInputModule.Pointer, GvrPointerInputModule.Pointer.raycastMode).ray);
     }
 }