Path-Creator
Path-Creator copied to clipboard
Want the Cube move Anchor Point to Anchor Point
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🙂