R/processing_movement_functions.R
reorient_qualisys2unity.RdReorient Qualisys data into the Unity left handed coordinate system and account for the offset between scene origin (in Unity) and Qualisys Motion Capture origin (in Unity coordinates).
reorient_qualisys2unity(df, offset = c(0, 0, 0), scenario_data = NULL)The same movement tibble with all position columns reoriented in a
list, to be used by mutate across rows of a trial_results tibble
Provide the offset as a vector in Unity coordinates (FROM Unity Scenario origin TO Qualisys origin). The function can also apply the rotation to local scenario coordinates provided in a scenario data object. This would ensure the returned data is in global coordinates.
It is recommended to include scenario data as all data stored via UXF from unity VR is in global coordinates.