InternalInternal: Initializes a new instance of the Entity class
Entity Id
Entity type, e.g. "Cube", "Sphere",.. undefined if not looked up
Entity name. undefined if not looked up
Class runtime
Gets the Collection storing user added components
Gets the Cogs EntityID of the Entity
InternalInternal set ID: Called when destroying 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.
StaticcreateStaticgetStaticwrap
Colormap Entity. Store colormap as texture in MaterialComponent. Sample usage: HeightMapComponent.colorMap, ZipComponent.colorMap