Animation with the camera
Animation with the camera
First, we have first to add an <a-entity> and then the camera with the cursor just underneath the <a-scene> Tag. The <a-entity> has the id camera. To position the camera, set the position on a wrapper <a-entity>. Don’t set the position directly on the camera primitive because controls will quickly override the set position:
<a-scene> <a-entity id="#camera" position ="0 1 5"> <a-camera zoom="0.5" user-height="0"> <a-cursor></a-cursor> </a-camera> </a-entity> ...
In the first example we would like to make a slow camera movement around the objects. It is important to understand that we always add animations as a child of the entity.
Previous TopicNext Topic