SphereCollider

Inherited: VolumeCollider

Description

The SphereCollider class provides functionality to define a sphere collider with a specific radius. It supports retrieving and setting the radius. The sphere collider can be integrated with other components in a game or simulation to enable accurate collision detection.

Public Methods

float

radius () const

void

setRadius (float radius)

Static Methods

None

Methods Description

float SphereCollider::radius () const

Returns the radius of the sphere collider.

See also setRadius().


void SphereCollider::setRadius (float radius)

Sets the radius of the sphere collider.

See also *radius*().