Hello,
i have problems with the Astar-Pathfinding project and i hope you can show me my fault.
I tried to change the ExampleScript for my needs.
The Path is showed Correct in Gizmos and the Script is looping through
my waypoints correct.
But my Character doesnt follow the Path that is showed.
It just move to a wall and stops there.
Hope you guys can give me advice!
(note: i used rb.AddForce((path.vectorPath[currentWaypoint] -
transform.position) * TrackSpeed);
to move my Character, so that its possible for me to rotate him towards
his direction.
I also tried a variant with transform.translate and another with
transform.translate = movetowards […] but it still doesnt work)
This is the part of my code: http://pastebin.com/A2gcqwkx
Thank you!