updateOrientationEuler3D

View sourceupdateOrientationEuler3D(world: World): void

Computes a 3D orientation step from each matching angular rotation.

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 Orientation3D and Rotation3D, in that order. For each matching entity, the system scales the rotation vector by the fixed 1 / 60 step, converts it to a quaternion with Quaternion.fromEuler, then calls Orientation3D#multiply and Orientation3D#normalize. Both returned quaternions are ignored by the current implementation, so it does not write or normalize the orientation in place; Rotation3D is also unchanged. Entities missing either component are skipped. The system does not read Time.delta or VirtualClock.

Examples

import { EulerIntegrator3DPlugin } from '@wimaengine/integrator'

app.registerPlugin(new EulerIntegrator3DPlugin())
// The orientation system runs during the app's Update schedule.

Parameters

NameDescriptionDefault
world

Update world containing orientation and rotation components.

—