Examples
import { EulerIntegrator3DPlugin } from '@wimaengine/integrator'
app.registerPlugin(new EulerIntegrator3DPlugin())
// Torque3D is consumed during the app's Update schedule.Function
updateAngularEuler3D(world: World): voidApplies each matching 3D torque step to the angular rotation state.
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 Rotation3D and Torque3D, in that order.
For each matching entity, the system creates a torque step scaled by the
fixed 1 / 60 value and passes it to Rotation3D.add. The current
implementation ignores the new vector returned by add, so it does not
write the rotation back in place; it does clear the queried torque with
set(0, 0, 0). Entities missing either component are skipped. The system
does not read Time.delta or VirtualClock.
import { EulerIntegrator3DPlugin } from '@wimaengine/integrator'
app.registerPlugin(new EulerIntegrator3DPlugin())
// Torque3D is consumed during the app's Update schedule.