//calling this will take a snapshot of the arms and record the time public ArmsSnapshot(GameObject[] left, GameObject[] right){ left_joints = new JointPositionSnapshot[3]; right_joints = new JointPositionSnapshot[3]; timestamp = Time.time; for(int i = 0; i < 3; i++){ left_joints[i] = new JointPositionSnapshot(left[i].transform.position); right_joints[i] = new JointPositionSnapshot(right[i].transform.position); } //testing - print when we make a new state //Debug.Log("Making an arm snapshot - " + timestamp); }
//calling this will take a snapshot of the arms and record the time public ArmsSnapshot(GameObject[] left, GameObject[] right) { left_joints = new JointPositionSnapshot[3]; right_joints = new JointPositionSnapshot[3]; timestamp = Time.time; for (int i = 0; i < 3; i++) { left_joints[i] = new JointPositionSnapshot(left[i].transform.position); right_joints[i] = new JointPositionSnapshot(right[i].transform.position); } //testing - print when we make a new state //Debug.Log("Making an arm snapshot - " + timestamp); }