Sphere

From Crumbled World Wiki

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.