wecs.mechanics.clock module

class wecs.mechanics.clock.SettableClock(dt=0.0)

Bases: object

set(dt)
class wecs.mechanics.clock.Clock(clock: function = None, timestep: float = 0.0, max_timestep: float = 0.03333333333333333, scaling_factor: float = 1.0, parent: wecs.core.UID = None, wall_time: float = 0.0, frame_time: float = 0.0, game_time: float = 0.0)

Bases: object

clock = None
timestep = 0.0
max_timestep = 0.03333333333333333
scaling_factor = 1.0
parent = None
wall_time = 0.0
frame_time = 0.0
game_time = 0.0
class wecs.mechanics.clock.DetermineTimestep(throw_exc=False)

Bases: wecs.core.System

entity_filters = {'clock': <wecs.core.AndFilter object>}
update(entities_by_filter)

The system’s functionality that is run during an update.

entity_by_filters
A dictionary mapping filter names to sets of wecs.core.entity.