|
@@ -129,7 +129,7 @@ public class PlayerReplay : MonoBehaviour
|
|
|
|
|
|
// If a joint is bigger than a certain distance, add it to the replay, else ignore it
|
|
|
// TODO: maybe distance need to be adjusted
|
|
|
- if (distance >= 0.2f)
|
|
|
+ if (distance >= 0.15f)
|
|
|
{
|
|
|
newJointsData.Add(jd);
|
|
|
newRecordingTimes.Add(recordingTimes[i]);
|
|
@@ -254,12 +254,8 @@ public class PlayerReplay : MonoBehaviour
|
|
|
|
|
|
yield return Visualize(jointsDataDemo, recordingTimesDemo);
|
|
|
|
|
|
- // TODO: Implementing color feedback
|
|
|
bc.SetDataDemo(jointsDataDemo, recordingTimesDemo);
|
|
|
|
|
|
- jointsDataDemo.Clear();
|
|
|
- recordingTimesDemo.Clear();
|
|
|
-
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -293,11 +289,14 @@ public class PlayerReplay : MonoBehaviour
|
|
|
body.SetData(jointsDataSeries, recordingTimesSeries);
|
|
|
body.ShowBody();
|
|
|
|
|
|
+ // Compare visualization demo with body
|
|
|
+ yield return bc.StartCompare();
|
|
|
+
|
|
|
+ jointsDataDemo.Clear();
|
|
|
+ recordingTimesDemo.Clear();
|
|
|
jointsDataSeries.Clear();
|
|
|
recordingTimesSeries.Clear();
|
|
|
|
|
|
- yield return bc.StartCompare();
|
|
|
-
|
|
|
// Wait for input
|
|
|
yield return ViveInput.WaitForControllerPress();
|
|
|
break;
|
|
@@ -313,9 +312,6 @@ public class PlayerReplay : MonoBehaviour
|
|
|
|
|
|
bc.SetDataDemo(jointsDataDemo, recordingTimesDemo);
|
|
|
|
|
|
- jointsDataDemo.Clear();
|
|
|
- recordingTimesDemo.Clear();
|
|
|
-
|
|
|
// Show start position of steps
|
|
|
startStepPreview.SetData(jointsDataSeries[0]);
|
|
|
startStepPreview.ShowBody();
|
|
@@ -331,11 +327,14 @@ public class PlayerReplay : MonoBehaviour
|
|
|
bodyEnd.SetData(jointsDataSeries, recordingTimesSeries);
|
|
|
bodyEnd.ShowBody();
|
|
|
|
|
|
+ // Compare visualization demo with body
|
|
|
+ yield return bc.StartCompare();
|
|
|
+
|
|
|
+ jointsDataDemo.Clear();
|
|
|
+ recordingTimesDemo.Clear();
|
|
|
jointsDataSeries.Clear();
|
|
|
recordingTimesSeries.Clear();
|
|
|
|
|
|
- yield return bc.StartCompare();
|
|
|
-
|
|
|
textFinish.SetActive(true);
|
|
|
yield return new WaitForSeconds(3);
|
|
|
textFinish.SetActive(false);
|