PhysicsUpdate
A reaction hosted by a Dynamics2DEnvironment, advancing its physics at every occurrence. Without an explicit timeDistribution or rate, it fires 30 times per time unit; environments may install their own instance with a different rate (EnvironmentWithDynamics uses a rate of 1, unless the simulation provides one).
Constructors
Properties
Observes whether the reaction procedure can be selected and executed by the engine. This observable emits updates when that state changes. Reactions whose procedure includes checking occurrence-time conditions may remain executable even when those conditions will suppress their model effects.
The Conditions interpreted by this reaction's scheduling and execution policy.
The physics environment advanced by this reaction.
The current meanDelay, for consumers requiring it to be finite and positive, such as those converting speeds into per-occurrence movements.
The model entity hosting this reaction, fixed for the lifetime of the reaction. A host only registers reactions whose host is the host itself.
The absolute Time of the next occurrence.
The delay distribution governing this reaction's putative occurrences.
Functions
Initializes reactive inputs after the model has been fully assembled.
Converts a node-hosted Reaction to a ReactionSurrogate.
Advances distribution-backed scheduling after successful execution at currentTime.
Refreshes this reaction's scheduling after one or more observed model inputs changed.