Fix hands not being detected

This commit is contained in:
Bones 2024-06-18 05:36:24 -04:00
parent 97aa22d6aa
commit 64fb9d69a2

View file

@ -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",
@ -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