|
|
- 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.",
|