/** * Options of the `model` component accepted by {@link ModelComponentSystem} that differ from the * properties of {@link ModelComponent}. Each replaces the same-named property of the options that * {@link Entity#addComponent} derives from the component class; see * {@link ComponentOptionsOverrides}. */ export type ModelComponentOptionsOverrides = { /** * - Center `[x, y, z]` of a custom bounding box; with * `aabbHalfExtents`, sets {@link ModelComponent#customAabb}. */ aabbCenter?: number[]; /** * - Half-extents `[x, y, z]` of a custom bounding box; with * `aabbCenter`, sets {@link ModelComponent#customAabb}. */ aabbHalfExtents?: number[]; /** * - Same as {@link ModelComponent#batchGroupId}. `null` * selects no batch group. */ batchGroupId?: number | null; }; /** * Allows an Entity to render a model or a primitive shape like a box, capsule, sphere, cylinder, * cone etc. * * @category Graphics */ export class ModelComponentSystem extends ComponentSystem { id: string; ComponentType: typeof ModelComponent; defaultMaterial: import("../../../index.js").StandardMaterial; initializeComponentData(component: any, _data: any): void; cloneComponent(entity: any, clone: any): import("../component.js").Component; onBeforeRemove(entity: any, component: any): void; } import { ComponentSystem } from '../system.js'; import { ModelComponent } from './component.js';