Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple question about the path following code #102

Open
4skinSkywalker opened this issue Aug 28, 2018 · 0 comments
Open

A simple question about the path following code #102

4skinSkywalker opened this issue Aug 28, 2018 · 0 comments

Comments

@4skinSkywalker
Copy link

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 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant