Examples
import { EulerIntegrator3DPlugin } from '@wimaengine/integrator'
app.registerPlugin(new EulerIntegrator3DPlugin())
// Position3D is advanced from Velocity3D during Update.Function
updatePositionEuler3D(world: World): voidAdvances each matching 3D position with its linear velocity.
EulerIntegrator3DPlugin 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 Position3D and Velocity3D, in that
order. For each matching entity, the system adds each velocity coordinate
multiplied by the fixed 1 / 60 step to the existing position and writes
all three results back into that same Position3D component.
Velocity is read but not cleared or replaced. Entities missing either
component are skipped, and the system does not read Time.delta or
VirtualClock.
import { EulerIntegrator3DPlugin } from '@wimaengine/integrator'
app.registerPlugin(new EulerIntegrator3DPlugin())
// Position3D is advanced from Velocity3D during Update.