bool IsCapsuleShape { get; set; }

robot_2Generated
code_blocksInput

Description

Determines if the current PhysicsShape instance is a capsule shape. This property returns true if the shape is a capsule, otherwise it returns false.

Usage

Use this property to check if a PhysicsShape is specifically a capsule shape. This can be useful when you need to perform operations or apply logic that is specific to capsule shapes.

Example

// Example of checking if a PhysicsShape is a capsule shape
PhysicsShape shape = new PhysicsShape();

if (shape.IsCapsuleShape)
{
    // Perform operations specific to capsule shapes
    Console.WriteLine("This shape is a capsule.");
}
else
{
    Console.WriteLine("This shape is not a capsule.");
}