Skip to content

API > MLPlayer > AvatarTrackedObject


MLPlayer.AvatarTrackedObject⚓︎

Read-Only

Read-only Property This property is Read-Only

Name Type
AvatarTrackedObject GameObject

Description⚓︎

Avatar tracked object is a game object which is tracked by the VR camera. This means that this object is located where the player camera is.

Extra Detail⚓︎

The player Root Object and Avatar Root are separate in terms of movement. The movement inputs from the controllers are reflected to the Player Root object, however physical movements in XR rig are only applied to the avatar. Therefore, there might be a condition that the player root and player avatar are not in the same location. You can use this game object to track the actual location of the player and player camera at all time and you can able to attach extra hit boxes to his object if needed.