bevy_xpbd icon indicating copy to clipboard operation
bevy_xpbd copied to clipboard

Fix non-square `Collider::heightfield` row and column count order

Open Jondolf opened this issue 1 year ago • 0 comments

Objective

The row and column counts in Collider::heightfield seem to be the wrong way around! This makes heightfields with a different number of rows and columns behave incorrectly in comparison to the documented representation.

The heightfield below should slope up smoothly left to right.

broken

Solution

Fix the order.

fixed

Jondolf avatar Nov 28 '24 22:11 Jondolf