This function creates a new sphere model using a segmented cube morphed into a spherical shape, with a physics collider.
Parameter | Description |
---|---|
world | world to create the mdoel in |
radius | cylinder radius |
segments | subdivisions for each face |
type | can be MESH_TRIANGLES or MESH_QUADS |
Returns a new model.