Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InteractiveComputerGraphics/PositionBasedDynamics
/ reset
Function
reset
pyPBD/examples/pendulum.py:76–80 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
74
75
# Reset the simulation
76
def
reset():
77
sim = pbd.Simulation.getCurrent()
78
sim.reset()
79
sim.getModel().cleanup()
80
buildModel()
81
82
def
main():
83
# Activate logger to output info on the console
Callers
1
main
Function · 0.70
Calls
5
getModel
Method · 0.80
buildModel
Function · 0.70
getCurrent
Method · 0.45
reset
Method · 0.45
cleanup
Method · 0.45
Tested by
no test coverage detected