Closed hendrikknoche closed 3 years ago
ObjectDistanceCm is calculated from two items:
objectDistanceCm = objectDistanceScreen * centimetersPerPixel;
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..
See also the function in L702 GameManager: https://github.com/med-material/TunnelGoalFittsTests/blob/master/assets/Scripts/Managers/GameManager.cs#L702
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. (?)
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.