The seek behavior rotates the occupant to travel along the current seek curve. Given the location of the occupant pt0, one of the projected points pt1, and the current seek curve sc, the seek behavior calculates two vectors: the vector leading from pt0 to pt1 (ptv) and the tangent vector along sc (sct). The magnitude of the angle between these two vectors is proportional to the cost of the seek behavior for pt1. Theislated as follows