(base)
| 10 | # This function is called automatically when the script is loaded in SPlisHSPlasH. |
| 11 | # The parameter base contains the current SimulationBase object. |
| 12 | def 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. |
| 21 | def step(): |