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

Function timeStep

pyPBD/examples/chain_model.py:97–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96# Perform simulation steps
97def timeStep():
98 sim = pbd.Simulation.getCurrent()
99 model = sim.getModel()
100
101 # We perform 8 simulation steps per render step
102 for i in range(8):
103 sim.getTimeStep().step(model)
104
105# Reset the simulation
106def 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