Sphere Sphere { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Sphere property of the PhysicsShape class provides access to the sphere properties if the shape is of a sphere type. This property is useful for retrieving specific attributes related to spherical shapes within the physics simulation.

Usage

To use the Sphere property, ensure that the PhysicsShape instance represents a sphere. You can then access the sphere-specific properties through this property.

Example

// Example of accessing the Sphere property
PhysicsShape shape = new PhysicsShape();

if (shape.IsSphereShape)
{
    Sphere sphereProperties = shape.Sphere;
    // Use sphereProperties as needed
}