bool IsHeightfieldShape { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

Indicates whether the current PhysicsShape instance is a heightfield shape. A heightfield shape is typically used to represent terrain or other surfaces that can be described by a grid of height values.

Usage

Use this property to determine if a PhysicsShape is specifically a heightfield shape. This can be useful when you need to apply specific logic or optimizations for heightfield shapes.

Example

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

if (shape.IsHeightfieldShape)
{
    // Perform operations specific to heightfield shapes
    Console.WriteLine("This shape is a heightfield.");
}
else
{
    // Handle other types of shapes
    Console.WriteLine("This shape is not a heightfield.");
}