MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / reset

Function reset

pyPBD/examples/bunny_cloth.py:165–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163
164# Reset the simulation
165def reset():
166 sim = pbd.Simulation.getCurrent()
167 sim.reset()
168 sim.getModel().cleanup()
169 cd = sim.getTimeStep().getCollisionDetection()
170 cd.cleanup()
171 buildModel()
172
173def main():
174 # Activate logger to output info on the console

Callers 1

mainFunction · 0.70

Calls 7

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

Tested by

no test coverage detected