pub unsafe extern "C" fn PxHeightField_modifySamples_mut(
    self_: *mut PxHeightField,
    startCol: i32,
    startRow: i32,
    subfieldDesc: *const PxHeightFieldDesc,
    shrinkBounds: bool
) -> bool
Expand description

Replaces a rectangular subfield in the sample data array.

The user provides the description of a rectangular subfield in subfieldDesc. The data is formatted and arranged as PxHeightFieldDesc.samples.

True on success, false on failure. Failure can occur due to format mismatch.

Modified samples are constrained to the same height quantization range as the original heightfield. Source samples that are out of range of target heightfield will be clipped with no error. PhysX does not keep a mapping from the heightfield to heightfield shapes that reference it. Call PxShape::setGeometry on each shape which references the height field, to ensure that internal data structures are updated to reflect the new geometry. Please note that PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.