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

+ 1 - 1
api/init.lua

@@ -38240,7 +38240,7 @@ return {
         {
           name = "ConvexShape",
           summary = "A convex hull shape.",
-          description = "A type of `Shape` that is a convex hull of a collection of points, allowing for custom collision shapes.  It is similar to a `MeshShape`, but it is not required to be kinematic, and it will use the convex hull of the mesh instead of using the exact triangles of the object.\n\nConvex shapes can be created from a `Model`, `ModelData`, `Mesh`, or a table of point positions, just like `MeshShape`.\n\nConvex shapes can be cloned by passing in an existing ConvexShape to clone:\n\n    model = lovr.data.newModelData('rock.glb')\n    parent = lovr.physics.newConvexShape(model)\n    clone = lovr.physics.newConvexShape(parent, scale)\n\nThe clone will reuse all of the data from the parent, which speeds things up a lot.\n\nConvex shapes can have a custom scale applied to their points, and clones can have a different scale than their parents.",
+          description = "A type of `Shape` that is a convex hull of a collection of points, allowing for custom collision shapes.  It is similar to a `MeshShape`, but it is not required to be kinematic, and it will use the convex hull of the mesh instead of using the exact triangles of the object.\n\nConvex shapes can be created from a `Model`, `ModelData`, `Mesh`, or a table of point positions, similar to `MeshShape`.\n\nConvex shapes can be cloned by passing in an existing ConvexShape to clone:\n\n    model = lovr.data.newModelData('rock.glb')\n    parent = lovr.physics.newConvexShape(model)\n    clone = lovr.physics.newConvexShape(parent, scale)\n\nThe clone will reuse all of the data from the parent, which speeds things up a lot.\n\nConvex shapes can have a custom scale applied to their points, and clones can have their own scale.",
           key = "ConvexShape",
           module = "lovr.physics",
           constructors = {

+ 3 - 3
api/lovr/physics/ConvexShape/init.lua

@@ -6,7 +6,7 @@ return {
     the convex hull of the mesh instead of using the exact triangles of the object.
 
     Convex shapes can be created from a `Model`, `ModelData`, `Mesh`, or a table of point positions,
-    just like `MeshShape`.
+    similar to `MeshShape`.
 
     Convex shapes can be cloned by passing in an existing ConvexShape to clone:
 
@@ -16,8 +16,8 @@ return {
 
     The clone will reuse all of the data from the parent, which speeds things up a lot.
 
-    Convex shapes can have a custom scale applied to their points, and clones can have a different
-    scale than their parents.
+    Convex shapes can have a custom scale applied to their points, and clones can have their own
+    scale.
   ]],
   extends = 'Shape',
   constructors = {