Fix hands not being detected
This commit is contained in:
parent
97aa22d6aa
commit
64fb9d69a2
8
main.lua
8
main.lua
|
@ -9,8 +9,8 @@ limbs = {
|
||||||
"head",
|
"head",
|
||||||
"hand/left",
|
"hand/left",
|
||||||
"hand/right",
|
"hand/right",
|
||||||
"hand/left/point",
|
"hand/left/grip",
|
||||||
"hand/right/point",
|
"hand/right/grip",
|
||||||
"elbow/left",
|
"elbow/left",
|
||||||
"elbow/right",
|
"elbow/right",
|
||||||
"shoulder/left",
|
"shoulder/left",
|
||||||
|
@ -255,8 +255,8 @@ function modeConfigure(pass)
|
||||||
local hx, hy, hz = lovr.headset.getPosition("head")
|
local hx, hy, hz = lovr.headset.getPosition("head")
|
||||||
|
|
||||||
for _, hand in ipairs(hands) do
|
for _, hand in ipairs(hands) do
|
||||||
if isTracked(hand .. "/point") then
|
if isTracked(hand) then
|
||||||
local cx, cy, cz = lovr.headset.getPosition(hand .. "/point")
|
local cx, cy, cz = lovr.headset.getPosition(hand)
|
||||||
|
|
||||||
-- Compute the direction from the controller to the headset
|
-- Compute the direction from the controller to the headset
|
||||||
local dirX = hx - cx
|
local dirX = hx - cx
|
||||||
|
|
Loading…
Reference in a new issue