World:newMeshCollider
Adds a new Collider to the World with a MeshShape already attached.
collider = World:newMeshCollider(vertices, indices)
Arguments
Name | Type | Description |
vertices | table | The table of vertices in the mesh. Each vertex is a table with 3 numbers.
|
indices | table | A table of triangle indices representing how the vertices are connected in the Mesh.
|
Returns
Name | Type | Description |
collider | Collider | The new Collider.
|
See also
Collider
World:newCollider
World:newBoxCollider
World:newCapsuleCollider
World:newCylinderCollider
World:newSphereCollider
World