Hello
Firstly your script is what I’m looking for months.
Then I do not know how the script
In my work I make models of traffic.
I need a script to move cars along a path.
In Maya, I make a spline made of regularly spaced objects (spheres).
an object 10 meters, 10 km. So 1000 objects.
I then exported to FBX.
In your script, you put your pins manually.
I would do it automatically with my spheres
By public variables in the script, I would:
1 give the path
2 give the speed in km per hour
3 tell the car how it begins its journey landmark
(Example with 2 cars, the first begins at 1 sphere and the second car starts at 5)
Once at the last point, the car reappeared in his room immediately start marker
thank you for your help if you do it
Hi
I think what you are looking for is not pathfinding, but how to make a car follow a predefined path. Take a look at iTween for unity instead.
While it is possible with this package, it is totally overkill.
Hello I tried ITWEEN but it does not go.
if I put the script ITWEEN on a camera.
She(It) follows the way as if she(it) was attached to an elastic(rubber band).
In curves squeezed(tightened), she(it) goes away from the curve
Well, I think you will have better luck with ITween anyway. That is certainly the right tool for the job, not this pathfinding project.
If I give you my script (in private message) based on a former(old) version of path finger, could you modify him(it)?
I test your 5 ° example.
For target I choose one node.
The cpasule go to it.
It’s what i want.
But when capsule is on the node of finish, i would the capqulle go imediatly at first node and go again to the node target.
freepl. Because this forum is very specific for the a* library, I think better you go to http://forum.unity3d.com/forums/12-Scripting, there is much more people and you could find someone to support you.