Note: This documentation is for the old 0.2.0 version of A-Frame. Check out the documentation for the current 0.9.0 version
The look-at component defines the behavior for an entity to dynamically rotate or face towards another entity or position. The rotation of the entity will be updated on every tick. The
look-at component can take either a vec3 position or a query selector to another entity.
Example applications might include having a monster stare at the player:
<a-entity id="monster" geometry="primitive: box" material="src: monster.png"
Or maybe having a dog look at a running squirrel:
<a-entity id="dog" geometry="primitive: box" material="src: dog.png"
|selector||A query selector indicating another entity to track. If the other entity is moving then the
|vec3||An XYZ coordinate. The entity will face towards a static position.|