mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-31 01:20:23 +00:00
Fix btHeightFieldTerrainShape triangle layout to match rendering
This commit is contained in:
parent
4aa40d16bc
commit
b9740fd2a1
@ -531,7 +531,7 @@ namespace MWPhysics
|
|||||||
mShape = new btHeightfieldTerrainShape(
|
mShape = new btHeightfieldTerrainShape(
|
||||||
sqrtVerts, sqrtVerts, heights, 1,
|
sqrtVerts, sqrtVerts, heights, 1,
|
||||||
minh, maxh, 2,
|
minh, maxh, 2,
|
||||||
PHY_FLOAT, true
|
PHY_FLOAT, false
|
||||||
);
|
);
|
||||||
mShape->setUseDiamondSubdivision(true);
|
mShape->setUseDiamondSubdivision(true);
|
||||||
mShape->setLocalScaling(btVector3(triSize, triSize, 1));
|
mShape->setLocalScaling(btVector3(triSize, triSize, 1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user