Ejemplo n.º 1
0
    void SetParameterControllerTargetPointLocation(Align.ControllerTargetPointLocation newParameterControllerTargetPointLocation)
    {
        Debug.Log("SetParameterControllerTargetPointLocation");
        ParameterControllerTargetPointLocation         = newParameterControllerTargetPointLocation;
        ParameterControllerTargetPointLocation_Visible = newParameterControllerTargetPointLocation;

        viveControllerInputManager.CurrentControllerTargetPointLocation = ParameterControllerTargetPointLocation;
    }
Ejemplo 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);
        }
    }
Ejemplo n.º 3
0
 void RpcUpdateParameterControllerTargetPointLocation(Align.ControllerTargetPointLocation value)
 {
     Debug.Log("RpcUpdateParameterControllerTargetPointLocation");
     ParameterControllerTargetPointLocation = value;
 }