Summary
A Function that links the visible networked avatar for a VR user with its corresponding
components in appropriate camera rig. Should only be run for the owner of the avatar.
Syntax
public bool Initialize(VRAvatarInitialization.VRDevice d, GameObject cameraRig, GameObject hmd, GameObject leftController, GameObject rightController, GameObject body)
Parameters
Name |
Type |
Description |
d |
VRAvatarInitialization.VRDevice |
VR device being used, not currently used in a meaningful manner. |
cameraRig |
GameObject |
The highest level component defining the play area of a VR user |
hmd |
GameObject |
Gameobject inheriting from camera manipulated by the head mounted display. |
leftController |
GameObject |
Game object tracking the world space of the left controller. |
rightController |
GameObject |
Game object tracking the wrold space of the right controller. |
body |
GameObject |
Game Object tracking the center of the camera rig or below the HMD. |
Return Value
Type |
Description |
bool |
boolean value indicating whether each follow script was successfully set |