Browse Source

Floor device;

bjorn 1 year ago
parent
commit
e16c8d6a0a
2 changed files with 11 additions and 0 deletions
  1. 4 0
      api/init.lua
  2. 7 0
      api/lovr/headset/Device.lua

+ 4 - 0
api/init.lua

@@ -21743,6 +21743,10 @@ return {
               name = "head",
               description = "The headset."
             },
+            {
+              name = "floor",
+              description = "A device representing the floor, at the center of the play area.  The pose of this device in physical space will remain constant, even if after recentering."
+            },
             {
               name = "left",
               description = "A shorthand for hand/left."

+ 7 - 0
api/lovr/headset/Device.lua

@@ -5,6 +5,13 @@ return {
       name = 'head',
       description = 'The headset.'
     },
+    {
+      name = 'floor',
+      description = [[
+        A device representing the floor, at the center of the play area.  The pose of this device in
+        physical space will remain constant, even if after recentering.
+      ]]
+    },
     {
       name = 'left',
       description = 'A shorthand for hand/left.'