Skip to content

Instantly share code, notes, and snippets.

@erwincoumans
Created October 28, 2017 02:08
Show Gist options
  • Save erwincoumans/ae979da55f0b35da74dde0f4a0785b36 to your computer and use it in GitHub Desktop.
Save erwincoumans/ae979da55f0b35da74dde0f4a0785b36 to your computer and use it in GitHub Desktop.
pybullet concave collision test
import pybullet as p
import time
p.connect(p.GUI)
#disable rendering during loading speeds it up
p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0)
p.configureDebugVisualizer(p.COV_ENABLE_TINY_RENDERER,0)
p.loadURDF("ground.urdf",useMaximalCoordinates=True)
for i in range (10):
for j in range (10):
p.loadURDF("sphere_small.urdf",[5-i,5-j,3], useMaximalCoordinates=True)
p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1)
p.setGravity(0,0,-10)
p.setRealTimeSimulation(1)
while (1):
p.setGravity(0,0,-10)
time.sleep(0.01)
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment