Gets the Collection storing user added components
Gets the Cogs EntityID of the Entity
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.
Class storing a Cogs entity. Instances are created internally.