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

@@ -1824,6 +1824,8 @@ void PhysicsServerCommandProcessor::setGuiHelper(struct GUIHelperInterface* guiH
guiHelper->createPhysicsDebugDrawer(m_data->m_dynamicsWorld);
} else
{
//state loggers use guiHelper, so remove them before the guiHelper is deleted
deleteStateLoggers();
if (m_data->m_guiHelper && m_data->m_dynamicsWorld && m_data->m_dynamicsWorld->getDebugDrawer())
{