Browse Source

ConvexShape now scales its points;

bjorn 5 months ago
parent
commit
eb0d5ddac9
2 changed files with 4 additions and 2 deletions
  1. 1 1
      api/init.lua
  2. 3 1
      api/lovr/physics/ConvexShape/getPoint.lua

+ 1 - 1
api/init.lua

@@ -38345,7 +38345,7 @@ return {
               description = "Returns one of the points in the convex hull, in local space.",
               key = "ConvexShape:getPoint",
               module = "lovr.physics",
-              notes = "Currently, the point positions do not include the scale of the convex shape.",
+              notes = "The point positions will be scaled by the ConvexShape's scale, see `ConvexShape:getScale`.",
               related = {
                 "ConvexShape:getPointCount"
               },

+ 3 - 1
api/lovr/physics/ConvexShape/getPoint.lua

@@ -27,7 +27,9 @@ return {
       returns = { 'x', 'y', 'z' }
     }
   },
-  notes = 'Currently, the point positions do not include the scale of the convex shape.',
+  notes = [[
+    The point positions will be scaled by the ConvexShape's scale, see `ConvexShape:getScale`.
+  ]],
   related = {
     'ConvexShape:getPointCount'
   }