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

Replace aabb for grassChunks #80

Open
EmiOnGit opened this issue Mar 9, 2024 · 0 comments
Open

Replace aabb for grassChunks #80

EmiOnGit opened this issue Mar 9, 2024 · 0 comments

Comments

@EmiOnGit
Copy link
Owner

EmiOnGit commented Mar 9, 2024

What problem does this solve or what need does it fill?

Currently the bounds of the grass chunk are defined by using the Transform and Aabb.
The Aabb however is rather cryptic for a potential user.
Also, assuming that the height is set as constant, the height of the Aabb box is not really needed

Describe the solution you'd like

Replace the Aabb with a Plane2d struct.
The plane will indicate the field which the grass lives on.
To further indicate the height of the grass, the WarblerHeight::Texture variant will take the max height directly.
In case of WarblerHeight::Uniform the height is already given directly.

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

1 participant