BakeMesh
7/14/25Less than 1 minute
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)
