Created
October 28, 2017 02:08
-
-
Save erwincoumans/ae979da55f0b35da74dde0f4a0785b36 to your computer and use it in GitHub Desktop.
pybullet concave collision test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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