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

Function timeStep

pyPBD/examples/pendulum.py:67–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66# Perform simulation steps
67def timeStep():
68 sim = pbd.Simulation.getCurrent()
69 model = sim.getModel()
70
71 # We perform 8 simulation steps per render step
72 for i in range(8):
73 sim.getTimeStep().step(model)
74
75# Reset the simulation
76def reset():

Callers 1

mainFunction · 0.70

Calls 4

getModelMethod · 0.80
getTimeStepMethod · 0.80
getCurrentMethod · 0.45
stepMethod · 0.45

Tested by

no test coverage detected