LookAtComponent
A Component that controls the "look at" behavior of entities in 3D space, allowing entities to face specific targets (such as viewers or other entities) and providing control over alignment methods and forward direction.
Constructors
Link copied to clipboard
constructor()
The default constructor for LookAtComponent with no parameters.
Properties
Functions
Link copied to clipboard
Clears the target for the entity's "look at" behavior.
Link copied to clipboard
Gets the type of target currently set for the entity's "look at" behavior.
Link copied to clipboard
Sets the specified entity as the target for the entity's "look at" behavior. If the entity is not valid, it will not be set as the target and will remain unchanged.
Link copied to clipboard
Sets the viewer as the target for the entity's "look at" behavior.