add raycast accelerator for btHeightfieldTerrainShape, thanks to Marc Zylann, see https://github.com/bulletphysics/bullet3/pull/2062

it can be disabled by setting the flag cb.m_flags |= btTriangleRaycastCallback::kF_DisableHeightfieldAccelerator;
acceleration is disabled for z axis up.
add btHeightfieldTerrainShape example to example browser
This commit is contained in:
erwincoumans committed 2019-04-15 21:55:29 -07:00
1 parent e97a7d77af
commit f28fd91e4f
12 files changed
+1702 -38

No files matched your search

@@ -439,12 +439,15 @@ struct CommonRigidBodyBase : public CommonExampleInterface
virtual void renderScene()
{
if (m_dynamicsWorld)
{
m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld);
}
{
m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld);
}
{
m_guiHelper->render(m_dynamicsWorld);
{
m_guiHelper->render(m_dynamicsWorld);
}
}
}
};