Struct SphereShape

Sphere shape for 3D collisions.

struct SphereShape ;

Sphere shape for 3D collisions, which can be set into a PhysicsBody or Area. This shape is useful for modeling sphere-like 3D objects.

Properties

NameTypeDescription
radius[get, set] doubleThe sphere's radius. The shape's diameter is double the radius.

Methods

NameDescription
getRadius
setRadius