You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Vehicle class you calculate the target position outside the if (distance > p.radius), but actually you apply seek(target) only if in that condition is true, could you save some calculation by moving the logic for finding the target within the if (distance > p.radius) block?
Why did you choose to put that logic outside the conditional? Just for debugging reasons or there's something else useful you can do with that?
The text was updated successfully, but these errors were encountered:
I have a question about NOC_6_05_PathFollowingSimple
In the Vehicle class you calculate the target position outside the
if (distance > p.radius)
, but actually you applyseek(target)
only if in that condition is true, could you save some calculation by moving the logic for finding the target within theif (distance > p.radius)
block?Why did you choose to put that logic outside the conditional? Just for debugging reasons or there's something else useful you can do with that?
The text was updated successfully, but these errors were encountered: