//When the angle between desired mocing direction and actual direction is bigger than 90 degree. turning to the desired moving direction directly.
//When the angle between actual moving direction and initial desired moving direction is bigger than 90 degree. turning to the desired moving direction directly.
if(d_direction.ScalarProduct(a_direction)<0){
if(a_direction.ScalarProduct(inid_direction)<0){
direction=d_direction;
direction=d_direction;
}
}
...
@@ -465,7 +465,7 @@ my_pair AGCVMModel::GetSpacing(Pedestrian* ped1, Pedestrian* ped2, Point ei, int
...
@@ -465,7 +465,7 @@ my_pair AGCVMModel::GetSpacing(Pedestrian* ped1, Pedestrian* ped2, Point ei, int
//When the angle between desired mocing direction and actual direction is bigger than 90 degree. turning to the desired moving direction directly.
//When the angle between actual moving direction and initial desired moving direction is bigger than 90 degree. turning to the desired moving direction directly.