()
| 12 | |
| 13 | # This function is called automatically in each simulation step. |
| 14 | def step(): |
| 15 | sim = sph.Simulation.getCurrent() |
| 16 | boundary = sim.getBoundaryModel(1) |
| 17 | animatedBody = boundary.getRigidBodyObject() |
| 18 | |
| 19 | tm = sph.TimeManager.getCurrent() |
| 20 | t = tm.getTime() |
| 21 | animatedBody.setVelocity([ 0.35*math.sin(0.75*t), -0.35*math.cos(0.75*t), 0]) |
| 22 | animatedBody.animate() |
nothing calls this directly
no test coverage detected