Guess the time at which the player initially moved away from, or to, a fixed position. This is evaluated within the horizontal plane only (2D). If ref_pos is given, then the function evaluates the orthogonal distance along the line pos-ref_pos

guess_move_at_pos(
  pos,
  ref_pos = NULL,
  ref_movement,
  max_dist = 0.2,
  min_time = min(ref_movement$time),
  max_time = max(ref_movement$time),
  method = "from",
  time = "first"
)

Arguments

pos

A list containing pos_x pos_y pos_z of fixed position.

ref_pos

Optional: a second list of the same type

ref_movement

A data frame with reference movement, e.g. the head or the waist movement. Movement file should have pos_x, pos_y, pos_z columns.

max_dist

Maximum distance in meters before player is classified as away from the position

Value

A time stamp (Unity time) representing the time when the participant initially moved from or to the position.

Details

The time parameter specifies whether to use the first or last time the player moves into the threshhold.