Path-Creator icon indicating copy to clipboard operation
Path-Creator copied to clipboard

Want the Cube move Anchor Point to Anchor Point

Open darkdoom973 opened this issue 3 years ago • 0 comments

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🙂

darkdoom973 avatar Jul 26 '22 09:07 darkdoom973