public bool GetState(out AvatarState state) { Pose pose; if (!avatar.Driver.GetPose(out pose)) { state = AvatarState.Default; return(false); } AvatarState.Initialize(out state, context.clientId, pose, left.grip, right.grip); return(true); }
public bool GetAvatarState(out AvatarState state) { OvrAvatarDriver.PoseFrame frame; if (!oculusAvatar.Driver.GetCurrentPose(out frame)) { state = AvatarState.defaults; return(false); } AvatarState.Initialize(out state, context.GetClientIndex(), frame, leftHand.gripObject, rightHand.gripObject); return(true); }
public bool GetAvatarState(out AvatarState state) { AvatarState.Initialize(out state, clientIndex, remotePose, leftHand.gripObject, rightHand.gripObject); return(true); }