Indicates whether the current PhysicsShape
instance is a sphere shape. This property returns true
if the shape is a sphere, otherwise it returns false
.
Indicates whether the current PhysicsShape
instance is a sphere shape. This property returns true
if the shape is a sphere, otherwise it returns false
.
Use this property to determine if a PhysicsShape
is specifically a sphere. This can be useful when you need to perform operations or apply logic that is specific to sphere shapes.
// Example of checking if a PhysicsShape is a sphere PhysicsShape shape = new PhysicsShape(); if (shape.IsSphereShape) { // Perform operations specific to sphere shapes Console.WriteLine("This shape is a sphere."); } else { Console.WriteLine("This shape is not a sphere."); }