Sphere: Difference between revisions
From Crumbled World Wiki
(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...") |
(No difference)
|
Latest revision as of 13:37, 5 July 2025
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. |