Skip to content

Commit d2fd5df

Browse files
committed
Fix non-square Collider::heightfield
1 parent f951ed3 commit d2fd5df

File tree

1 file changed

+1
-1
lines changed
  • src/collision/collider/parry

1 file changed

+1
-1
lines changed

src/collision/collider/parry/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ impl Collider {
868868
"Each row in `heights` must have the same amount of points"
869869
);
870870

871-
let heights = nalgebra::DMatrix::from_vec(row_count, column_count, data);
871+
let heights = nalgebra::DMatrix::from_vec(column_count, row_count, data);
872872
SharedShape::heightfield(heights, scale.into()).into()
873873
}
874874

0 commit comments

Comments
 (0)