Lua
C++
Edit

CreateCubeSphere

This function creates a new sphere model using a segmented cube morphed into a spherical shape, with a physics collider.

Syntax

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

Returns a new model.

Copyright © 2024 Ultra Software.
All rights reserved.