예제 #1
0
    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);
    }
예제 #2
0
    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);
    }
예제 #3
0
 public bool GetAvatarState(out AvatarState state)
 {
     AvatarState.Initialize(out state, clientIndex, remotePose, leftHand.gripObject, rightHand.gripObject);
     return(true);
 }