Skip to main content
100%

Gist b077b41a118451bbcc13bbc94caea681

✓ Published0🌍 Public
UUtopiah
Last edited May 13, 2020
Created on May 13, 2020

This example shows a WebVR scene where the user’s viewpoint is repositioned by attaching the active camera-tool entity to an avatar rig. The code selects the last camera-tool element in the A-Frame scene, grabs the avatar rig, and uses Three.js’s `Object3D.attach()` to transfer the camera’s world transform to the rig, effectively making the rig follow the camera’s position and orientation. It demonstrates a simple way to control an avatar’s pose in a virtual environment using A-Frame’s entity-component querying and Three.js’s transform hierarchy.

AI-generated description

Similar vizzes