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.
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.
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 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."); }