Model loading · function
orientMeshes
Stand an asset up, given which of its axes points at the sky.
Explained in Importing models.
function orientMeshes(meshes: readonly MeshData[], assetUp: UpAxis): MeshData[]import { orientMeshes } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
meshes | readonly MeshData[] | |
assetUp | UpAxis |
In depth
Normals take the same matrix as positions rather than an inverse transpose, and that is exact rather than an approximation: for a rotation the two are the same matrix. There is no scale here by construction, which is the other half of why.