Physics.BakeMesh(number meshID, boolean convex)
Prepares the Mesh for use with a MeshCollider.
Parameters:
Name | Type | Description |
---|---|---|
meshID | number | The instance ID of the Mesh to bake collision data from. |
convex | boolean | A flag to indicate whether to bake convex geometry or not. |
Usage
---@type number
local meshID;
---@type boolean
local convex;
Physics:BakeMesh(meshID, convex)