Capsule Capsule { get; set; }

robot_2Generated
code_blocksInput

Description

The Capsule property of the PhysicsShape class provides access to the capsule properties if the shape is of a capsule type. This property is useful for retrieving specific details about the capsule shape, such as its dimensions and orientation, which are essential for physics calculations and collision detection.

Usage

To use the Capsule property, ensure that the PhysicsShape instance represents a capsule shape. You can then access the capsule properties directly through this property.

Example

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

if (shape.IsCapsuleShape)
{
    Capsule capsuleProperties = shape.Capsule;
    // Use capsuleProperties to access specific capsule details
}