MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / step

Function step

data/Scenes/ScriptTest.py:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20# This function is called automatically in each simulation step.
21def step():
22 global counter
23 sim = sph.Simulation.getCurrent()
24 fluid = sim.getFluidModel(0)
25 tm = sph.TimeManager.getCurrent()
26 print(fluid.getPosition(0))
27
28 print(counter)
29 counter += 1
30 print("---")
31
32# This function is called automatically in each simulation reset.
33def reset():

Callers

nothing calls this directly

Calls 3

getFluidModelMethod · 0.80
printFunction · 0.50
getCurrentMethod · 0.45

Tested by

no test coverage detected