-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Map Scaling not occuring from the center point #43
Comments
@theDRB123 I assigned you to this issue. This is something i've looked into, the problem gets worse the further you are away from the origin of the perlin generation which is that corner. The reason this happens is to keep the coordinates relative to the origin so that if you scale in or out, move the plane, then scale back to the original, the coordinates would show you moved as much as you would without scaling at all. If we change the scaling to center on the plane, we'll probably have to change the speed of the plane relative to the scaling so the coordinates would still line back up when scaling back. |
Yeah , I think i have to change a lot the current implementation is also causing another problem that when it gains height , the terrain starts Moving even faster instead of getting slower , should i change some complex stuff too ? I will take care not to break stuff |
You can change as much as you'd like to get this issue resolved, as long as the core concept with perlin noise and procedural generation stands and current features aren't broken. The biggest would be making sure that when you enter a seed and coordinates you've been to before, it will be the exact same generation every time. |
I am getting really confused , if possible can you just provide me with a just starting point , from where i may start to try and mitigate the issue (i am a beginner in games and JS both so sometimes i get really confused) , thanks . |
I have encountered a problem which is occuring when we change the up/down behaviour , when the x/y are scaling and PosX and PosY aren't , they go out of sync and thus are causing , some shaking effect ... so should i make a pull request for solving the scaling , and then solve the shaking problem after it ? |
currently the shaking affect has been handled by @anttijankeri in #44 and #48 . If we can implement the scaling to what we have now, that would solve this map scaling issue. |
I am sorry , i am a bit late but i have added the PR ... the shaking issue seems to be quite prevailant , i was not able to fix that.... |
Describe the bug
The map should be scaled with airplane at the origin when moving Up and down , but instead it is scaling from the top-left corner
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The origin for scaling should be the airplane (as it is moving up and the environment should correspond to it)
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
scaled from top left corner
i wish to work on this issue...
The text was updated successfully, but these errors were encountered: