Add a GameComponent to the entity.
Optional
values: Partial<Omit<GameComponent<any>, keyof GameComponent<any>>>Optional
_recursive: booleanOptional
_recursive: booleanGet an immutable reference to a GameComponent on this entity.
Optional
includeRemoved: booleanGet a list of GameComponent types that have been added to this entity.
Get an object containing all the GameComponent on this entity, where the object keys are the component types.
Get an object containing all the GameComponent that are slated to be removed from this entity, where the object keys are the component types.
Get an mutable reference to a GameComponent on this entity.
Get a GameComponent that is slated to be removed from this entity.
Boolean value indicating whether the entity has all GameComponent in a list.
Boolean value indicating whether the entity has any GameComponent in a list.
Boolean value indicating whether the entity has the given GameComponent.
Remove all GameComponent on this entity.
Remove a GameComponent from the entity.
This class extends THREE.Object3D
See
https://threejs.org/docs/#api/en/core/Object3D