Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Geometric tolerance value applied when the lodPolicy field is set to LodPolicy::GeometricTolerance.
Internal flag set if component is a Cogs Core component.
The policy used for determining the level of detail for this entity.
Enable old-style lod'ing with a completely separate hierarchy for each lod-level.
Threshold values to switch levels of detail at when the policy in use is distance based (for example LodPolicy::CenterDistance). The thresholds tells the LodSystem at which distances it may switch the visibility of child entities on and off. The number of threshold values should typically equal the number of children - 1. This results in the first child being shown when the distance is less than the first threshold value, then stepping through the children, one per threshold value, finally showing the last child if the distance is greater than the last threshold value.
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 data describing level of detail behavior for the entity the component belongs to. Depending on the policy set, the LodSystem does not necessarily perform any actions on other components of the entity. Some level of detail policies might be implemented in different systems, using the LodComponent instance as control data.