SphereShape

Inherits: Shape < Resource < Reference < Object

Sphere shape for 3D collisions.

Description

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

Tutorials

Properties

float

radius

1.0


Property Descriptions

float radius = 1.0

  • void set_radius ( float value )

  • float get_radius ( )

The sphere's radius. The shape's diameter is double the radius.