⚲
Lua
C++
Edit
CreateSphere
This function creates a new sphere model with a physics collider.
Syntax
shared_ptr<
Model
>
CreateSphere
(shared_ptr<
World
> world, const float radius = 0.5, const int sides = 16)
Parameter
Description
world
world to create the mdoel in
radius
cylinder radius
sides
number of sides
Returns
Returns a new model.
Copyright © 2024 Ultra Software.
All rights reserved.