Model loading · function
orientTransforms
Column-major 4×4 placements, turned into the engine's frame: O · M · Oᵀ for each, with O the
same turn orientMeshes gives the geometry. A copy the file moved along its own +z is then moved
along the engine's +y, and a placement that was a rotation stays one of the same angle.
Explained in Importing models.
function orientTransforms(transforms: Float32Array, assetUp: UpAxis): Float32Arrayimport { orientTransforms } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
transforms | Float32Array | |
assetUp | UpAxis |