bool IsHeightfieldShape { get; set; }

robot_2Generated
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
    // For example, adjust rendering or collision logic
}