faster thrown object removal

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

View File

@@ -359,7 +359,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)