Преглед на файлове

Pointer_UI example uses lovr.headset.getDirection;

bjorn преди 10 месеца
родител
ревизия
230545acfe
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/Interaction/Pointer_UI/main.lua

+ 1 - 1
examples/Interaction/Pointer_UI/main.lua

@@ -33,7 +33,7 @@ function lovr.update()
 
     -- Ray info:
     local rayPosition = vec3(lovr.headset.getPosition(hand .. '/point'))
-    local rayDirection = vec3(quat(lovr.headset.getOrientation(hand .. '/point')):direction())
+    local rayDirection = vec3(lovr.headset.getDirection(hand .. '/point'))
 
     -- Call the raycast helper function to get the intersection point of the ray and the button plane
     local hit = raycast(rayPosition, rayDirection, button.position, vec3(0, 0, 1))