Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Asset resource that should be instantiated.
Flags to control behaviour of asset instantiation.
Disable adjustment of tolerance due to quality system or resource usage.
Temporarily disable adjustment of target lod-level, debug tool to allow moving the camera without affecting lod levels.
Internal flag set if component is a Cogs Core component.
Material to use for models if the OverrideMaterial flag is set.
Minimum distance to use when scaling the tolerance.
Used to sort requests, higher number gets processed before lower number.
Tolerance scale factor to use when determining lod levels, see AssetComponent's documentation.
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
Instantiates an asset model into the scene. see Documentation/AssetSystem.md TODO: Investigate resource usage tolerance scaling. TODO: The tolerance should also be scaled by effective window size.