1 (edited by Amen 2019-05-23 13:45:28)

Topic: Simulate a route

Hi,
I 'm using "Drive To point script" to simulate a route.
So,when i click to add the location ,The prephab Marker that i choosed  is oriented 180 degrees and steps back to get to the desired place.
how can I fix the face of the Object to move forward?
Thank you

Re: Simulate a route

Hello.

I've never seen anything like it.
And I do not know (even theoretically) why this can happen.
Please send your scene as a package to us (support@infinity-code.com).
I will check it.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Simulate a route

I just added a plane instead of the car to see what gives and test the script for a plane on earth....You don't have the same error ?

Re: Simulate a route

Do you mean that the plane just wrong oriented?

How to fix this:
1. Create a new empty GameObject.
2. Create an instance of your marker in the scene inside the new GameObject.
3. Set rotation of the internal GameObject to (0, 180, 0).
4. Create a prefab from GameObject created in step 1.
5. Remove the external GameObject from the scene.
6. Use the new prefab for the marker.

I thought plane was moving the other way from the target point.

P.S. Does not make sense to send just a scene file, because it cannot be imported correctly.
How to export package: right-click on the scene in Project Window and select Export Package.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Simulate a route

Really a great  support, it works very well.
Sorry ,I didn't blunder it is not the right project.., I learn every time from your comment.

For the displacement of the object, would it be possible to predefine a list of points ( not only one )as a guide of traget for my object?
Any way to define the point set?
thank you in advance

Re: Simulate a route

See DriveToPointByRoute and MoveMarkerOnRouteExample example scripts.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Simulate a route

I think there is a problem some were or i confuse things because I'm trying to simulate a route and 
I can not by using any method you propose either "DriveToPointByRoute" ,"MoveMarkerOnRouteExample"
HERE Routing API:
http://infinity-code.com/atlas/online-m … ample.html
or
Open Route Service:
http://infinity-code.com/atlas/online-m … ample.html
In your opinion it can be a problem OF what?

Re: Simulate a route

These scripts show how to make a route (an array of locations).
These examples use the Google Directions API to get routes.
You can modify them to use HERE Routing API, Open Route Service, or specify array of locations manually.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Simulate a route

so it's not as simple as I imagined.
I have an other question:
-Any Way to define the altitude of my 3D object and vary it  in "Drive To point script".
Thank u

Re: Simulate a route

OnlineMapsMarker3D.altitude
http://infinity-code.com/doxygen/online … 5cd33d18f5

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!