Browse Source

Clarify sphere size;

bjorn 6 years ago
parent
commit
11b2ceb037
2 changed files with 8 additions and 8 deletions
  1. 4 4
      api/init.lua
  2. 4 4
      api/lovr/graphics/sphere.lua

+ 4 - 4
api/init.lua

@@ -9124,9 +9124,9 @@ return {
                   default = "0"
                 },
                 {
-                  name = "size",
+                  name = "radius",
                   type = "number",
-                  description = "The size of the sphere, in meters.",
+                  description = "The radius of the sphere, in meters.",
                   default = "1"
                 },
                 {
@@ -9182,9 +9182,9 @@ return {
                   default = "0"
                 },
                 {
-                  name = "size",
+                  name = "radius",
                   type = "number",
-                  description = "The size of the sphere, in meters.",
+                  description = "The radius of the sphere, in meters.",
                   default = "1"
                 },
                 {

+ 4 - 4
api/lovr/graphics/sphere.lua

@@ -22,10 +22,10 @@ return {
       default = '0',
       description = 'The z coordinate of the center of the sphere.'
     },
-    size = {
+    radius = {
       type = 'number',
       default = '1',
-      description = 'The size of the sphere, in meters.'
+      description = 'The radius of the sphere, in meters.'
     },
     angle = {
       type = 'number',
@@ -51,11 +51,11 @@ return {
   returns = {},
   variants = {
     {
-      arguments = { 'x', 'y', 'z', 'size', 'angle', 'ax', 'ay', 'az' },
+      arguments = { 'x', 'y', 'z', 'radius', 'angle', 'ax', 'ay', 'az' },
       returns = {}
     },
     {
-      arguments = { 'material', 'x', 'y', 'z', 'size', 'angle', 'ax', 'ay', 'az' },
+      arguments = { 'material', 'x', 'y', 'z', 'radius', 'angle', 'ax', 'ay', 'az' },
       returns = {}
     }
   }