Sphere shape for 3D collisions.
    public class SphereShape : Shape

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

Inheritance Chain

Constructors

    public SphereShape()

Properties

    public float Radius { get; set; }

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

Methods

    public float GetRadius()

Getter for Radius

    public void SetRadius(float radius)

Setter for Radius

Tags: