@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / ModelMeshParameters
Type Alias: ModelMeshParameters ​
ts
type ModelMeshParameters = {
pivot?: {
x: number;
y: number;
z: number;
};
};Defined in: components/MeshGeometry.ts:54
Parameters of a model entity. Its only one is the pivot (0.17.0): a point in the file's space, in the entity's local units, that becomes the entity's origin. The loaded model sits inside the entity moved by -pivot, so the Transform positions, rotates and scales the model about that point. Absent (or the origin) means the file's own origin.
Properties ​
| Property | Type | Defined in |
|---|---|---|
pivot? | { x: number; y: number; z: number; } | components/MeshGeometry.ts:55 |
pivot.x | number | components/MeshGeometry.ts:55 |
pivot.y | number | components/MeshGeometry.ts:55 |
pivot.z | number | components/MeshGeometry.ts:55 |

