GCubeSDK
©2026 FenixFox®Studios

SphereHelper

SphereHelper ⟵ LineObject3D

Wireframe sphere helper.
SphereHelper draws a yellow (by default) wireframe sphere. Use it to show a radius in the scene, for example the influence range of an AudioEmitter.

InheritanceDiagram node_Line Line node_SphereHelper SphereHelper node_Line->node_SphereHelper node_Object3D Object3D node_Object3D->node_Line

Methods

SphereHelper(f32 radius, const Color& color, u32 widthSegments, u32 heightSegments)

Constructor

radius Sphere radius 1.0f
color Wireframe color (RGBA) 0xFFFF00FF yellow
widthSegments Horizontal segments 8
heightSegments Vertical segments 6

void setRadius(f32 radius)

Sets the sphere radius and rebuilds the wireframe

radius New radius

f32 getRadius() const

Gets the current radius

void setColor(const Color& color)

Sets the wireframe color

color New color (RGBA)

Color getColor() const

Gets the wireframe color

Properties

isSphereHelper bool
radius f32
color Color
widthSegments u32
heightSegments u32