Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Arc end angle.
Arc start angle.
Internal flag set if component is a Cogs Core component.
Sample complexity of the mesh.
Shape of the mesh to generate.
Size parameters.
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
Generates mesh data and assigns the generated mesh to a MeshComponent on the same entity.