This is a wrapper function for reorient_qualisys2unity. See there for details.

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.

reorient_qualisys2unity_cols(
  df,
  .cols = tidyselect::all_of("mocap"),
  offset = c(0, 0, 0),
  scenario_col = NULL
)

Arguments

df

a trial_results data frame

.cols

A tidy selection of columns to work on. Default: all_of("mocap").

offset

A 3-element translation vector in Unity coordinates (from Unity Scenario Origin towards Qualisys Mocap origin)

scenario_col

A column containing scenario data (Default:NULL)

Value

The trial_results tibble with all position columns reoriented

Details

It is recommended to include scenario data as all data stored via UXF from unity VR is in global coordinates.