Exemplo n.º 1
0
    void SetParameterInterfaceType(Align.InterfaceType newParameterInterfaceType)
    {
        Debug.Log("SetParameterInterfaceType");
        ParameterInterfaceType         = newParameterInterfaceType;
        ParameterInterfaceType_Visible = newParameterInterfaceType;

        viveControllerInputManager.CurrentAlignmentInterfaceType = ParameterInterfaceType;
    }
Exemplo n.º 2
0
    private void FixedUpdate()
    {
        if (CurrentState == State.Running)
        {
            if (CurrentAlignmentIndex != WAITING_FOR_USER)
            {
                // here we are not waiting for the first alignment from the user (the alignment that starts the session)
                // so we should be tracking per-frame pose information here

                // don't log pose every frame. have it as a controllable parameter.
                var time = Time.time; // current seconds since start of game

                if ((time - timeLastPoseLog) >= SecondsBetweenPoseLogs)
                {
                    Log_OnPose();

                    timeLastPoseLog = time;
                }
            }
        }

        if (ParameterInterfaceType_Visible != ParameterInterfaceType)
        {
            ParameterInterfaceType = ParameterInterfaceType_Visible;
            RpcUpdateParameterInterfaceType(ParameterInterfaceType_Visible);
        }

        if (ParameterControllerTargetPointLocation_Visible != ParameterControllerTargetPointLocation)
        {
            ParameterControllerTargetPointLocation = ParameterControllerTargetPointLocation_Visible;
            RpcUpdateParameterControllerTargetPointLocation(ParameterControllerTargetPointLocation_Visible);
        }

        if (ParameterControllerVisibility_Visible != ParameterControllerVisibility)
        {
            ParameterControllerVisibility = ParameterControllerVisibility_Visible;
            RpcUpdateParameterControllerVisibility(ParameterControllerVisibility_Visible);
        }
    }
Exemplo n.º 3
0
 void RpcUpdateParameterInterfaceType(Align.InterfaceType value)
 {
     Debug.Log("RpcUpdateParameterInterfaceType");
     ParameterInterfaceType = value;
 }