-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Bug]: Readme: Trample formula is confusing #7
Comments
Cheers MK, I'll make that clear in the README. That formula is directly from the code, and they use the squared width. I'm not entirely sure what their reasoning is for not using length either! |
Not sure if there was a misunderstanding, but I cannot see the expected behavior in this patch. |
I think at this stage we're being pedantic 🙂 I honestly think the original
Neither superscript nor carets are valid Java code - I picked the nicer looking format for documentation purposes, and wrapped it in a code block since using mathjax is overkill.
No explanation is provided in the MC code. I would think length is correct, but it is what it is. At the end of the day, I'm only including the equation alongside the description for those who are curious. I don't believe the calculation impact the majority of people, and those who care can work it out pretty quickly. |
Thanks, I didn't know that. In that case, yeah, superscript is the best option IMO.
Then the explanation to readers of this repo should be something like "Minecraft code uses square width and disregards length. I couldn't find a reason for why." That makes it clear that it's not a mistake of yours, and maybe even inspires people to explain Mojang's reasoning. |
My purpose is to convey the information succinctly, not to attempt explaining the base code behind it. I think if anyone really wants to go that in depth, my discord is always open and available. I'll properly shut down this issue now, since I won't be making further changes for now. Thanks for all your thoughts on the matter though. |
Describe the Bug
In the current notation
width * width * height
, it's unclear whether you meant width² or maybe it's a mistake and you meant width × length × height.Steps to Reproduce
Read the readme, encounter the formula.
Expected Behavior
The formula should either include length, or be followed by an explanation of why length is not used.
Screenshots
No response
Fabric Version
No response
Mod Version
none (yet)
Log Output
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: