Browse Source

rm acceleration accessors;

bjorn 6 years ago
parent
commit
135f3ea726

+ 4 - 100
api/init.lua

@@ -12431,94 +12431,6 @@ return {
         }
       },
       functions = {
-        {
-          name = "getAcceleration",
-          tag = "input",
-          summary = "Get the linear acceleration of a device.",
-          description = "Returns the current linear acceleration of a device, in meters per second per second.",
-          key = "lovr.headset.getAcceleration",
-          module = "lovr.headset",
-          related = {
-            "lovr.headset.getPosition",
-            "lovr.headset.getOrientation",
-            "lovr.headset.getVelocity",
-            "lovr.headset.getAngularVelocity",
-            "lovr.headset.getAngularAcceleration"
-          },
-          variants = {
-            {
-              arguments = {
-                {
-                  name = "device",
-                  type = "Device",
-                  description = "The device to get the acceleration of.",
-                  default = "head"
-                }
-              },
-              returns = {
-                {
-                  name = "ax",
-                  type = "number",
-                  description = "The x component of the linear acceleration."
-                },
-                {
-                  name = "ay",
-                  type = "number",
-                  description = "The y component of the linear acceleration."
-                },
-                {
-                  name = "az",
-                  type = "number",
-                  description = "The z component of the linear acceleration."
-                }
-              }
-            }
-          }
-        },
-        {
-          name = "getAngularAcceleration",
-          tag = "input",
-          summary = "Get the angular acceleration of a device.",
-          description = "Returns the current angular acceleration of a device.",
-          key = "lovr.headset.getAngularAcceleration",
-          module = "lovr.headset",
-          related = {
-            "lovr.headset.getPosition",
-            "lovr.headset.getOrientation",
-            "lovr.headset.getVelocity",
-            "lovr.headset.getAngularVelocity",
-            "lovr.headset.getAcceleration"
-          },
-          variants = {
-            {
-              arguments = {
-                {
-                  name = "device",
-                  type = "Device",
-                  description = "The device to get the acceleration of.",
-                  default = "head"
-                }
-              },
-              returns = {
-                {
-                  name = "ax",
-                  type = "number",
-                  description = "The x component of the angular acceleration."
-                },
-                {
-                  name = "ay",
-                  type = "number",
-                  description = "The y component of the angular acceleration."
-                },
-                {
-                  name = "az",
-                  type = "number",
-                  description = "The z component of the angular acceleration."
-                }
-              }
-            }
-          }
-        },
         {
           name = "getAngularVelocity",
           tag = "input",
@@ -12529,9 +12441,7 @@ return {
           related = {
             "lovr.headset.getPosition",
             "lovr.headset.getOrientation",
-            "lovr.headset.getVelocity",
-            "lovr.headset.getAcceleration",
-            "lovr.headset.getAngularAcceleration"
+            "lovr.headset.getVelocity"
           },
           variants = {
             {
@@ -13023,9 +12933,7 @@ return {
           related = {
             "lovr.headset.getPosition",
             "lovr.headset.getVelocity",
-            "lovr.headset.getAngularVelocity",
-            "lovr.headset.getAcceleration",
-            "lovr.headset.getAngularAcceleration"
+            "lovr.headset.getAngularVelocity"
           },
           variants = {
             {
@@ -13158,9 +13066,7 @@ return {
           related = {
             "lovr.headset.getOrientation",
             "lovr.headset.getVelocity",
-            "lovr.headset.getAngularVelocity",
-            "lovr.headset.getAcceleration",
-            "lovr.headset.getAngularAcceleration"
+            "lovr.headset.getAngularVelocity"
           },
           variants = {
             {
@@ -13202,9 +13108,7 @@ return {
           related = {
             "lovr.headset.getPosition",
             "lovr.headset.getOrientation",
-            "lovr.headset.getAngularVelocity",
-            "lovr.headset.getAcceleration",
-            "lovr.headset.getAngularAcceleration"
+            "lovr.headset.getAngularVelocity"
           },
           variants = {
             {

+ 0 - 39
api/lovr/headset/getAcceleration.lua

@@ -1,39 +0,0 @@
-return {
-  tag = 'input',
-  summary = 'Get the linear acceleration of a device.',
-  description = [[
-    Returns the current linear acceleration of a device, in meters per second per second.
-  ]],
-  arguments = {
-    {
-      name = 'device',
-      type = 'Device',
-      default = 'head',
-      description = 'The device to get the acceleration of.'
-    }
-  },
-  returns = {
-    {
-      name = 'ax',
-      type = 'number',
-      description = 'The x component of the linear acceleration.'
-    },
-    {
-      name = 'ay',
-      type = 'number',
-      description = 'The y component of the linear acceleration.'
-    },
-    {
-      name = 'az',
-      type = 'number',
-      description = 'The z component of the linear acceleration.'
-    }
-  },
-  related = {
-    'lovr.headset.getPosition',
-    'lovr.headset.getOrientation',
-    'lovr.headset.getVelocity',
-    'lovr.headset.getAngularVelocity',
-    'lovr.headset.getAngularAcceleration'
-  }
-}

+ 0 - 37
api/lovr/headset/getAngularAcceleration.lua

@@ -1,37 +0,0 @@
-return {
-  tag = 'input',
-  summary = 'Get the angular acceleration of a device.',
-  description = 'Returns the current angular acceleration of a device.',
-  arguments = {
-    {
-      name = 'device',
-      type = 'Device',
-      default = 'head',
-      description = 'The device to get the acceleration of.'
-    }
-  },
-  returns = {
-    {
-      name = 'ax',
-      type = 'number',
-      description = 'The x component of the angular acceleration.'
-    },
-    {
-      name = 'ay',
-      type = 'number',
-      description = 'The y component of the angular acceleration.'
-    },
-    {
-      name = 'az',
-      type = 'number',
-      description = 'The z component of the angular acceleration.'
-    }
-  },
-  related = {
-    'lovr.headset.getPosition',
-    'lovr.headset.getOrientation',
-    'lovr.headset.getVelocity',
-    'lovr.headset.getAngularVelocity',
-    'lovr.headset.getAcceleration'
-  }
-}

+ 1 - 3
api/lovr/headset/getAngularVelocity.lua

@@ -30,8 +30,6 @@ return {
   related = {
     'lovr.headset.getPosition',
     'lovr.headset.getOrientation',
-    'lovr.headset.getVelocity',
-    'lovr.headset.getAcceleration',
-    'lovr.headset.getAngularAcceleration',
+    'lovr.headset.getVelocity'
   }
 }

+ 1 - 3
api/lovr/headset/getOrientation.lua

@@ -35,8 +35,6 @@ return {
   related = {
     'lovr.headset.getPosition',
     'lovr.headset.getVelocity',
-    'lovr.headset.getAngularVelocity',
-    'lovr.headset.getAcceleration',
-    'lovr.headset.getAngularAcceleration'
+    'lovr.headset.getAngularVelocity'
   }
 }

+ 1 - 3
api/lovr/headset/getPosition.lua

@@ -30,8 +30,6 @@ return {
   related = {
     'lovr.headset.getOrientation',
     'lovr.headset.getVelocity',
-    'lovr.headset.getAngularVelocity',
-    'lovr.headset.getAcceleration',
-    'lovr.headset.getAngularAcceleration'
+    'lovr.headset.getAngularVelocity'
   }
 }

+ 1 - 3
api/lovr/headset/getVelocity.lua

@@ -30,8 +30,6 @@ return {
   related = {
     'lovr.headset.getPosition',
     'lovr.headset.getOrientation',
-    'lovr.headset.getAngularVelocity',
-    'lovr.headset.getAcceleration',
-    'lovr.headset.getAngularAcceleration'
+    'lovr.headset.getAngularVelocity'
   }
 }