Determines if the current PhysicsShape
instance is a capsule shape. This property returns true
if the shape is a capsule, otherwise it returns false
.
Determines if the current PhysicsShape
instance is a capsule shape. This property returns true
if the shape is a capsule, otherwise it returns false
.
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 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."); }