faster thrown object removal

This commit is contained in:
Bart Moyaers committed 2019-08-14 11:13:06 +02:00
1 parent c9b898c735
commit c99a446ba0
1 file changed
+6 -1
@@ -365,7 +365,12 @@ class PyBulletDeepMimicEnv(Env):
self._humanoid.thrown_body_ids.append(body)
def removeThrownObjects(self):
# Disable gui so that object removal does not cause stutter
self._pybullet_client.configureDebugVisualizer(self._pybullet_client.COV_ENABLE_RENDERING,0)
for objectId in self._humanoid.thrown_body_ids:
self._pybullet_client.removeBody(objectId)
self._humanoid.thrown_body_ids = []
self._humanoid.thrown_body_ids = []
self._pybullet_client.configureDebugVisualizer(self._pybullet_client.COV_ENABLE_RENDERING,1)