updateVelocityEuler3D

View sourceupdateVelocityEuler3D(world: World): void

Advances 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.

Examples

import { EulerIntegrator3DPlugin } from '@wimaengine/integrator'

app.registerPlugin(new EulerIntegrator3DPlugin())
// Velocity3D entities are integrated during each Update pass.

Parameters

NameDescriptionDefault
world

Update world containing velocity and acceleration components.

—