Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrain export x-axis position is not right #5

Open
doudouye opened this issue Aug 6, 2019 · 1 comment
Open

Terrain export x-axis position is not right #5

doudouye opened this issue Aug 6, 2019 · 1 comment

Comments

@doudouye
Copy link

doudouye commented Aug 6, 2019

Vector3 pos = new Vector3(-(startY + y), tData[startX + x, startY + y], (startX + x));
tVertices[y * w + x] = Vector3.Scale(meshScale, pos) + terrainPos;

These line make pos's x negative first and add terrainPos is not right.
Need Add terrainPos first then make pos's x negative. Becasuse it make world position right first then do negative to make it right in 3DMax.
God~ T.T

@monitor1394
Copy link
Owner

Can you show the detail error and your code? I can't found any problem in untiy and recastnavigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants