add single step rendering feature:

while (1):
    stepSimulation()
    pybullet.configureDebugVisualizer(pybullet.COV_ENABLE_SINGLE_STEP_RENDERING, 1)

disable single step using
pybullet.configureDebugVisualizer(pybullet.COV_ENABLE_SINGLE_STEP_RENDERING, 0)
This commit is contained in:
erwincoumans
2018-09-14 17:17:11 -07:00
parent d909448ee3
commit e6d74580c1
4 changed files with 11 additions and 1 deletions

View File

@@ -390,6 +390,13 @@ void OpenGLExampleBrowserVisualizerFlagCallback(int flag, bool enable)
{
gEnableRenderLoop = (enable!=0);
}
if (flag == COV_ENABLE_SINGLE_STEP_RENDERING)
{
singleStepSimulation = true;
}
if (flag == COV_ENABLE_SHADOWS)
{
useShadowMap = enable;