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

Function timeStep

pyPBD/examples/beam_model.py:75–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 glPopMatrix()
74
75def timeStep():
76 sim = pbd.Simulation.getCurrent()
77 model = sim.getModel()
78 for i in range(8):
79 sim.getTimeStep().step(model)
80
81 for tetModel in model.getTetModels():
82 tetModel.updateMeshNormals(model.getParticles())
83
84def reset():
85 pbd.Simulation.getCurrent().reset()

Callers 1

mainFunction · 0.70

Calls 5

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

Tested by

no test coverage detected