@Benjamin, I followed all your steps in the demo model/blog post you linked to give cars and peds "eyes", but I am encountering one outstanding issue. In the checkForPed function (see pasted below), I get the error message that "The method get_Main() is undefined for the type Cars". Any ideas on how to resolve? I tried main.pedestrian, too, but that didn't seem to work. Thanks!
for (Pedestrian thisPed : get_Main().pedestrian) {
// for each pedestrian in model
double pedX = thisPed.getX() - getX();
double pedY = thisPed.getY() - getY();
if (fieldOfView.contains(pedX, pedY)) {
pedInDanger = true;
break;
}
}