Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with coordinates/objects in wrong location with custom MeshModifier #1207
I've created a custom
This image should make it clearer:
Here is the GeoJSON that defines the road in question:
Here's what I logged in the console (note the Z values):
Note: If this is a bug or support ticket, please provide the following information:
Based on this comment, I've modified my code to this, but I'm still not getting things right:
It makes sense that I'm getting 2 segments because they are coming from 2 tiles, but I'm still not able to get the roads in the correct location, although they are now in different wrong locations. Clearly I'm making some mistake in the conversions, but I don't see where.
Finally solved it. Sort of. Trashed the
Then in the coroutine, I find all my roads (that I've added to a
I don't know if this is the best way to do it, or if I'm going to run into issues if I ever change zoom, scale, etc., but for now it's got things working so I can get on to other things.