Examples
import { EulerIntegrator3DPlugin } from '@wimaengine/integrator'
app.registerPlugin(new EulerIntegrator3DPlugin())
// Velocity3D entities are integrated during each Update pass.Function
updateVelocityEuler3D(world: World): voidAdvances each matching 3D linear velocity with its accumulated acceleration.
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 Velocity3D and Acceleration3D, in that
order. Each matching velocity is updated in place with acceleration * (1 / 60) for all three coordinates, then the acceleration is reset to
(0, 0, 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.
import { EulerIntegrator3DPlugin } from '@wimaengine/integrator'
app.registerPlugin(new EulerIntegrator3DPlugin())
// Velocity3D entities are integrated during each Update pass.