med-material / TunnelGoalFittsTests

Unity Sources for Goal Crossing, Steering Task and Fitts Law to benchmark physical abilities (fx head movement)
MIT License
1 stars 1 forks source link

distance and size parameter #55

Closed hendrikknoche closed 3 years ago

hendrikknoche commented 3 years ago

using a combination of size 69 and distance 10 results in a negative ID (-2) (can fix on the Rshiny server) but need to make sure how distance and size relate.

bastianilso commented 3 years ago

ObjectDistanceCm is calculated from two items:

image

Does your fix work Hendrik? I'm wondering why we would need to add the object's width. But maybe the variables I use above are not what they seem..

bastianilso commented 3 years ago

See also the function in L702 GameManager: https://github.com/med-material/TunnelGoalFittsTests/blob/master/assets/Scripts/Managers/GameManager.cs#L702

bastianilso commented 3 years ago

Hmm, I guess by adding the object's width to the calculation, you actually make the measurement from the "centerpoint", rather than from the closest edge. (?)