Skip to content

@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 ​

PropertyTypeDefined in
pivot?{ x: number; y: number; z: number; }components/MeshGeometry.ts:55
pivot.xnumbercomponents/MeshGeometry.ts:55
pivot.ynumbercomponents/MeshGeometry.ts:55
pivot.znumbercomponents/MeshGeometry.ts:55