simulator
simulator copied to clipboard
potential bug in NPCController.SetChangeLaneData()
hey, Lg-team,
for lane change scenario, with a different map, where the wps indexes are not consistent in neighbor lanes, there is a problem to use currentIndex
from previous lane to update currentTarget
for current lane (line891 in NPController) :
private void SetChangeLaneData(List<Vector3> data)
{
laneData = new List<Vector3>(data);
currentTarget = laneData[currentIndex];
isDodge = false; // ???
}
we are also looking for a more robost algorithms to set new target in new lane
@david-gwa
Yes, you are correct. We are adding some new features to NPCs and will look at a fix for this. Thanks for letting us know.