implement PyBullet removeState command. Fixes Issue #2163
https://github.com/bulletphysics/bullet3/issues/2163
This commit is contained in:
@@ -80,6 +80,10 @@ setupWorld()
|
||||
#both restore from file or from in-memory state should work
|
||||
p.restoreState(fileName="state.bullet")
|
||||
stateId = p.saveState()
|
||||
print("stateId=",stateId)
|
||||
p.removeState(stateId)
|
||||
stateId = p.saveState()
|
||||
print("stateId=",stateId)
|
||||
|
||||
if verbose:
|
||||
p.setInternalSimFlags(1)
|
||||
|
||||
Reference in New Issue
Block a user