-
Notifications
You must be signed in to change notification settings - Fork 6
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
Physics module #17
Comments
No, that is not expected. The system works on terrain height, there is no difference between cliffs and terrain tool height. Also, not sure what you mean by "ugly". Post a reproducible example. |
When I say ugly I am just referencing the terraining crowd (point A): https://www.hiveworkshop.com/threads/advanced-terraining-tutorial.203428/ This is the map: https://github.com/StN-NL/sheepz The default map is a tropical island (the one in the top left):
Alternatively, using only cliffs, where everything works just fine: Hope this makes any sense, let me know if you need more info. |
It's not really feasible for me to check an entire map's unknown to me script for this specific error, there could be many side effects coming from all kinds of places.
Only thing from a short look over your code I saw is that you call So, please create a similar small example to reproduce the issue if you want me to analyze it further. |
If you were to run your code using my map Sheepz.w3x you will find your footman is floating near the shores. Only modification needed to land it on the island:
This might be an issue with the map itself then, and I might try to remake it. Maybe a by-effect of resizing the map. EDIT: it is definitively an issue with the map file. Sorry for bothering you with this. I created a new map and it seems to work fine. |
No problem. Perhaps it's an issue if you change cliff level with water or something, making the height values not be correct. |
Unfortunately recreating the map first caused me to think it worked as I placed the island in a different position. But when I moved it back to the topleft the same issue reappeared. To pinpoint the issue I created maps of several sizes with cliff level 4 just to have initial height. Then I started clicking around to see visualize the heightmap using:
Turns out that the larger the map the smaller the heightmap coverage. The surface that is not covered is for the higher Y values. It seems that the maximum area covered by the heightmap is 268,435,456 or 16,384 tiles (128x128). To reproduce:
|
Ok, I see, so it's due to max array size in Jass. Lua wouldn't have this problem, but it has many others 😄 . |
Ok, I will reduce the map size for full coverage, sounds like the best approach here. Feel free to close. Before I forget, thanks for Wurst ;) |
Well not the best but the fastest workaround I guess. I can add something if I get the time. Enjoy your Wurst. |
Hello, using the physics module with cliffs only works fine (a bit ugly though), but when using height instead of cliffs (terrain tool), units start to float (cliff level 0) or objects fall below the surface (higher cliff levels). This is expected?
The text was updated successfully, but these errors were encountered: