Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
The inner radius of the tubular shape, only used for Hollow shape.
Internal flag set if component is a Cogs Core component.
The outer radius of the tubular shape, used for all shapes.
Factor by which to scale the inner and outer radius.
Number of samples around the circumference.
Spine of the tubular shape. Measured depth along trajectory where casing starts.
Measured depth along trajectory where casing stops.
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
Component in Extension Casing