MCPcopy 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
76def reset():
77 sim = pbd.Simulation.getCurrent()
78 sim.reset()
79 sim.getModel().cleanup()
80 buildModel()
81
82def main():
83 # Activate logger to output info on the console

Callers 1

mainFunction · 0.70

Calls 5

getModelMethod · 0.80
buildModelFunction · 0.70
getCurrentMethod · 0.45
resetMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected