Component constructor
Type-name of the component, e.g. name of sub-class implementing the component. "MyComponent", etc.
The depth along the trajectory to position the shape at.
Internal flag set if component is a Cogs Core component.
Rotation around the objects local axes.
Target trajectory along which to align.
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
Aligns the entity along a trajectory at a specified depth. An offset and rotation can also be specified. The calculated position and offset is relative to the global coordinates of the entity.