Sphere

From Crumbled World Wiki
Revision as of 13:37, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:SphereExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Sphere(Vec3 position, float radius) | |- |Sphere() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec3 |getPosition() |Returns the Sphere center position. |- |float |getRadius() |Returns the Sphere radius. |- | |setPosition(Vec3 position) |Set the Sph...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SphereExampleCode

Constructor

function description
Sphere(Vec3 position, float radius)
Sphere()

Functions

return function description
Vec3 getPosition() Returns the Sphere center position.
float getRadius() Returns the Sphere radius.
setPosition(Vec3 position) Set the Sphere center position.
setRadius(float position) Set the Sphere Radius.