Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Render billboard on top of normal geometry.
Blend mode.
Color tint of the billboard.
Flip the billboard horizontally.
Flip the billboard vertically.
Horizontal alignment of the billboard.
Image to show.
Size of the billboard in pixels.
Internal flag set if component is a Cogs Core component.
Vertical alignment of the billboard.
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
Renders a square billboard oriented towards the screen, positioned by the transform given by the TransformComponent. The billboard is rendered with constant size, no matter the distance from the camera.