Skip to main content

Physics.BakeMesh(number meshID, boolean convex)

Prepares the Mesh for use with a MeshCollider.

Parameters:

NameTypeDescription
meshIDnumberThe instance ID of the Mesh to bake collision data from.
convexbooleanA flag to indicate whether to bake convex geometry or not.

Usage

---@type number
local meshID;

---@type boolean
local convex;


Physics:BakeMesh(meshID, convex)