Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / createMeshGeometryComponent

Function: createMeshGeometryComponent()

ts
function createMeshGeometryComponent(
   world, 
   entityId, ...
   args): MeshGeometryComponent;

Defined in: factories/components/MeshGeometryFactory.ts:4

Parameters

ParameterType
worldWorld
entityIdnumber
...args[EditableMeshObjectKind, Object3D<Object3DEventMap> | null, Partial<MeshGeometryParameters>, { modelName?: string; castShadow?: boolean; receiveShadow?: boolean; }]

Returns

MeshGeometryComponent