agent - Ray Tracing Procedure clarification -
i'm kind of confused on procedure. study found here (https://cife.stanford.edu/sites/default/files/tr165.pdf). i'm creating agent based modelling simulation , use ray tracing procedure found in study agents.
given eye position o , perception range vr, , let m є (0, 1] real number , ε small positive constant, ray tracing algorithm computing visibility of obstacles can described follows:
procedure(ray tracing) initialize m = 1; while agent has not reached assembly point, each time step: position o, cast 3 rays (left,middle,and right) length lr = m * vr; if ray intersects obstacle record intersection; else if m + ε ≤ 1 set m = m + ε; end while this image accompanying procedure question is, m? what's for? author didn't elaborate on , i'm confused.
Comments
Post a Comment