Skip to content

Turn an avatar's head through its humanoid rig

Updated

A Skeleton component with a humanoid rig resolves Amelia’s bones into humanoid roles. The script asks it for the head and the right arm by role, not by bone name, and makes her look around and wave.

Watch Amelia turn her head and wave; the log lists the bones the rig resolved. Drag to orbit the camera, scroll to zoom.

Turn an avatar's head through its humanoid rig

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

RigHeadTurn.xrproj