updateAngularEuler2D

View sourceupdateAngularEuler2D(world: World): void

Advances each matching 2D angular rotation with its accumulated torque.

EulerIntegrator2DPlugin registers this exact function directly in the repeating AppSchedule.Update schedule. The registration does not specify a system group, so the schedule’s default group is used.

The query requires Rotation2D and Torque2D, in that order. Each matching rotation receives torque.value * (1 / 60) in its mutable value field, and the torque value is then cleared to 0 in place. Entities missing either component are skipped. This implementation uses the fixed 1 / 60 step in the source; it does not read Time.delta or VirtualClock.

Examples

import { EulerIntegrator2DPlugin } from '@wimaengine/integrator'

app.registerPlugin(new EulerIntegrator2DPlugin())
// Rotation2D and Torque2D entities are integrated during Update.

Parameters

NameDescriptionDefault
world

Update world containing rotation and torque components.

—