PyBullet: add planar reflection example,

See examples/pybullet/examples/addPlanarReflection.py
This commit is contained in:
erwincoumans
2018-04-11 01:03:36 -07:00
parent 39edcf699c
commit ffc808784b
11 changed files with 155 additions and 15 deletions

View File

@@ -1026,6 +1026,10 @@ void OpenGLGuiHelper::setVisualizerFlagCallback(VisualizerFlagCallback callback)
void OpenGLGuiHelper::setVisualizerFlag(int flag, int enable)
{
if (getRenderInterface() && flag==16)//COV_ENABLE_PLANAR_REFLECTION
{
getRenderInterface()->setPlaneReflectionShapeIndex(enable);
}
if (m_data->m_visualizerFlagCallback)
(m_data->m_visualizerFlagCallback)(flag,enable);
}