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] Angle off-limit spikes in specific cases #3

Open
N1ckn1ght opened this issue Jan 7, 2023 · 1 comment
Open

[Terrain] Angle off-limit spikes in specific cases #3

N1ckn1ght opened this issue Jan 7, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@N1ckn1ght
Copy link
Owner

Example:

Height is limited in between 0 and any number.
Previous angle was slightly bigger than -math.pi * 0.5
Last p2.y is 1
angleDiffLimit slighlty less then math.pi * 0.5
Now terrain generator is stuck because it can't produce such segment so it'd have a limited angle and p2 will be lied in [0;n] boundaries by y.

For now it will just generate an off-limit angle spike. need help to make better gen algorithm.

@N1ckn1ght N1ckn1ght added the help wanted Extra attention is needed label Jan 7, 2023
@N1ckn1ght
Copy link
Owner Author

This also may occur on generation of a guaranteed to land on platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant