faster thrown object removal

This commit is contained in:
Bart Moyaers
2019-06-24 13:32:59 +02:00
parent c9b898c735
commit c99a446ba0

View File

@@ -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)