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

    [Obsolete("GetRadius is deprecated. Use the Radius property instead.")]
    public float GetRadius()

Getter for Radius

    [Obsolete("SetRadius is deprecated. Use the Radius property instead.")]
    public void SetRadius(float radius)

Setter for Radius

Tags: