Protected
constructorGets the Collection storing user added components
Gets the Cogs EntityID of the Entity
Exposes material properties for legacy entities and code.
Gets the Entity name. Empty string if not defined.
Sets the optional Entity name, renames existing entity
Gets the Entity Type, g.g. 'Group', 'Cube' etc.
Compare two entities for equality. Picking or wrapping entities are not guaranteed to return same object.
Entity to compare with.
True if same entity ID and belongs to same Cogs instance.
Get component of given type. Type param is deduced from parameter componentType. Must call: const xc = entity.getComponent(runtime.TransformComponent);
Type returned. Not given. Calculated from the componentType parameter.
Type to get, e.g. runtime.TransformComponent
actual component or null if not member.
CogsInternal: Release on Entity destroy.
Colormap Entity. Store colormap as texture in MaterialComponent. Sample usage: HeightMapComponent.colorMap, ZipComponent.colorMap