mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 17:39:40 +00:00
parent
28be5a259b
commit
1fb442e701
1 changed files with 6 additions and 3 deletions
|
@ -58,11 +58,14 @@ namespace MWPhysics
|
||||||
mShape->setUseDiamondSubdivision(true);
|
mShape->setUseDiamondSubdivision(true);
|
||||||
mShape->setLocalScaling(btVector3(triSize, triSize, 1));
|
mShape->setLocalScaling(btVector3(triSize, triSize, 1));
|
||||||
|
|
||||||
// Enables acceleration of heighfield collissions.
|
#if BT_BULLET_VERSION >= 289
|
||||||
|
// Accelerates some collision tests.
|
||||||
//
|
//
|
||||||
// Bullet does not yet use this in the most time-consuming method, `btHeightfieldTerrainShape::processAllTriangle`.
|
// Note: The accelerator data structure in Bullet is only used
|
||||||
// See https://github.com/bulletphysics/bullet3/issues/3276
|
// in some operations. This could be improved, see:
|
||||||
|
// https://github.com/bulletphysics/bullet3/issues/3276
|
||||||
mShape->buildAccelerator();
|
mShape->buildAccelerator();
|
||||||
|
#endif
|
||||||
|
|
||||||
btTransform transform(btQuaternion::getIdentity(),
|
btTransform transform(btQuaternion::getIdentity(),
|
||||||
btVector3((x+0.5f) * triSize * (sqrtVerts-1),
|
btVector3((x+0.5f) * triSize * (sqrtVerts-1),
|
||||||
|
|
Loading…
Reference in a new issue