bullet3/examples/pybullet/saveWorld.py
2016-10-12 23:03:36 -07:00

9 lines
180 B
Python

import pybullet as p
import time
p.connect(p.SHARED_MEMORY)
timestr = time.strftime("%Y%m%d-%H%M%S")
filename = "saveWorld" + timestr + ".py"
p.saveWorld(filename)
p.disconnect()