mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-26 03:56:05 +00:00
Update saveWorld.py
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import pybullet as p
|
||||
import time
|
||||
import pybullet_data
|
||||
|
||||
p.connect(p.SHARED_MEMORY)
|
||||
|
||||
p.setAdditionalSearchPath(pybullet_data.getDataPath())
|
||||
timestr = time.strftime("%Y%m%d-%H%M%S")
|
||||
filename = "saveWorld" + timestr + ".py"
|
||||
p.saveWorld(filename)
|
||||
|
||||
Reference in New Issue
Block a user