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

Function init

data/Scenes/ScriptTest.py:12–18  ·  view source on GitHub ↗
(base)

Source from the content-addressed store, hash-verified

10# This function is called automatically when the script is loaded in SPlisHSPlasH.
11# The parameter base contains the current SimulationBase object.
12def init(base):
13 global counter
14 global simulationBase
15
16 print("init")
17 simulationBase = base
18 counter = 1
19
20# This function is called automatically in each simulation step.
21def step():

Callers 5

initModelMethod · 0.50
initMethod · 0.50
initMethod · 0.50
initMethod · 0.50
initMethod · 0.50

Calls 1

printFunction · 0.50

Tested by

no test coverage detected