void SetParameterControllerTargetPointLocation(Align.ControllerTargetPointLocation newParameterControllerTargetPointLocation) { Debug.Log("SetParameterControllerTargetPointLocation"); ParameterControllerTargetPointLocation = newParameterControllerTargetPointLocation; ParameterControllerTargetPointLocation_Visible = newParameterControllerTargetPointLocation; viveControllerInputManager.CurrentControllerTargetPointLocation = ParameterControllerTargetPointLocation; }
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); } }
void RpcUpdateParameterControllerTargetPointLocation(Align.ControllerTargetPointLocation value) { Debug.Log("RpcUpdateParameterControllerTargetPointLocation"); ParameterControllerTargetPointLocation = value; }