Skip to content

A simple question about the path following code #102

@4skinSkywalker

Description

@4skinSkywalker

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions