Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion physx/source/geomutils/src/hf/GuHeightField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ PxU32 Gu::HeightField::computeCellCoordinates(PxReal x, PxReal z, PxReal& fracX,
PX_ASSERT(x >= 0.0f && x < PxF32(mData.rows));
PX_ASSERT(z >= 0.0f && z < PxF32(mData.columns));

const PxU32 vertexIndex = PxU32(x * (mData.nbColumns) + z);
const PxU32 vertexIndex = PxU32(x) * mData.columns + PxU32(z);
PX_ASSERT(vertexIndex < (mData.rows)*(mData.columns));

return vertexIndex;
Expand Down