Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
List of cameras for which frustums will be used to deduce visible geometry, defaults to main camera.
Enable creation of miscellaneous debug geometry, like the intersected frustum and so on.
Maximum corner of vertex displacement. Forwarded to misc bounding boxes.
Minimum corner of vertex displacement. Forwarded to misc bounding boxes.
Maximum corner of extent to cover.
Minimum corner of extent to cover.
Internal flag set if component is a Cogs Core component.
Layer used to render tiles.
Entity to use as center reference to level of detail calculations, defaults to main camera.
Internal resolution of each tile in the grid.
Enable/disable updates of level-of-detail hierarchy.
Gets the optional owning entity
Component name == type. For compatibility
Gets the type of the component. Ex. "TransformComponent", "SceneComponent" etc.
Static
createInternal: Creates a new component of the given type (name). Component is wrapped when adding to an entity.
Type of the component. Ex. "TransformComponent"
Created Cogs.js component.
Static
wrap
class defining a Cogs component. Defines basic properties of the component - readonly for clients 'type' and 'entity'. All component shares same class definition. The properties for accessing the fields of the component type will be filled in at runtime, e.g. for TransformComponent: getter+setter for: coordinates, position, rotation etc.