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

Want the Cube move Anchor Point to Anchor Point #122

Open
darkdoom973 opened this issue Jul 26, 2022 · 0 comments
Open

Want the Cube move Anchor Point to Anchor Point #122

darkdoom973 opened this issue Jul 26, 2022 · 0 comments

Comments

@darkdoom973
Copy link

I have a cube, I move it along the path using

if(isWalkPressed)
{
distanceTravelled += speed * Time.deltaTime;
targetCube.position = pathCreator.path.GetPointAtDistance(distanceTravelled);

}

But when I stop pressing Walk Button, I want the cube to move to the Next AnchorPoint (the ones with default red sphere gizmos)
But, I cannot find a way to do so
Help🙂

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