Skip to content

Commit

Permalink
Fix hands not being detected
Browse files Browse the repository at this point in the history
  • Loading branch information
SpookySkeletons committed Jun 18, 2024
1 parent 97aa22d commit 64fb9d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ limbs = {
"head",
"hand/left",
"hand/right",
"hand/left/point",
"hand/right/point",
"hand/left/grip",
"hand/right/grip",
"elbow/left",
"elbow/right",
"shoulder/left",
Expand Down Expand Up @@ -255,8 +255,8 @@ function modeConfigure(pass)
local hx, hy, hz = lovr.headset.getPosition("head")

for _, hand in ipairs(hands) do
if isTracked(hand .. "/point") then
local cx, cy, cz = lovr.headset.getPosition(hand .. "/point")
if isTracked(hand) then
local cx, cy, cz = lovr.headset.getPosition(hand)

-- Compute the direction from the controller to the headset
local dirX = hx - cx
Expand Down Expand Up @@ -347,4 +347,4 @@ end

function lovr.draw(pass)
mode(pass)
end
end

0 comments on commit 64fb9d6

Please sign in to comment.