Periodic

This condition is satisfied at specified intervals. Units for intervals are milliseconds (1 sec. = 1,000 milliseconds).

Automatically generated code (generated by the behavior dialog):

# Adjust circle1's velocity periodically.
circle1.bind(PERIODIC, system.evtHandler, 2500,
             ADJUSTVELOCITY, **{'d_vx': 1, 'd_vy': 0, 'd_vr': 0})

Manually created code (equivalent to the automatically generated code shown above):

def adjustVelocity(event, source):
    source.vx += 1

circle1.bind(PERIODIC, adjustVelocity, 2500)

Note

Mekanimo uses clock time (not solver time) to trigger the actions at specified intervals.

On Alarm

This condition is satisfied after a specified time is elapsed. Unlike periodic events, this event occurs only once.

Note

Mekanimo uses clock time (not solver time) to trigger the actions at specified intervals.

Solver Timestep

This condition is always satisfied. It means at each time step that solver computes the specified action is triggered.

Table Of Contents

Previous topic

Collisions

Next topic

Compound conditions

This Page