Sphere Sphere { get; set; }

robot_2Generated
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 physics shapes within the physics simulation environment.

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
}