Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
If the model should inherit the material from the base entity.
Internal flag set if component is a Cogs Core component.
Explicit material handle.
Handle to a model resource that will be instanced onto the entity this ModelComponent belongs to.
If model resource has a localOrigin property, forward this value to the TransformComponent's coordinate of the root that holds this entity.
If the model should use shared model materials and not create it's own instances.
If the model should wait for all subresources (e.g. meshes) to be fully loaded before instantiating 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
Contains a model reference to instance as children to the entity the ModelComponent belongs to.