-
Notifications
You must be signed in to change notification settings - Fork 21
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
Disabling particle collisions with leaf blocks #18
Comments
I've got some partial success with this by slightly changing It uses either
However, Interestingly enough, I can't figue out the real difference between the two methods, using either of them alone seems to work, but there has to be a reason they both exist. |
Hey, I've been trying to improve my collision handling in my mod recently and have come across the same methods. I've been googling to try to understand what the loop in |
Oh, thanks for the input! Not only is there the loop in My guess is it's using some optimization technique like sweep and prune (aka sort and sweep), which I vaguely remember as something like: For Falling Leaves I thought about the idea of temporarily modifying collision boxes (just before and after the particle's |
Do you remember where you read these? I'd be interested in reading it |
No, and a quick search turned up nothing, not sure what search terms I used. I'll see if I can find it (or something) again - maybe looking up the MCP mappings could help? |
Hm... can't seem to find anything, tried searching for the method names (Confusingly, MCP seems to have the exact same name for Anyway, I think that the stuff I read wasn't really that helpful, it was basically saying something along the lines of "there's 2 collision codes", "actually very clever" but nothing indepth to understand what's actually going on. It probably makes more sense looking up (AABB) collision code optimizations and see if they match what Minecraft is using. Is the reason you're looking into the collision code related to https://github.com/Cadiboo/NoCubes? |
Sorry for the late response |
I encountered the same bug, using the latest version of mod, the game version is 1.21fabric |
The falling leaf particles actually spawn inside the block they come from, which is no issue if they are going downwards, but if they are going sideways, they can collide with other leaf blocks, resulting in stuck leaves.
It's currently not a big issue since it happens rarely, but when wind is implemented, it makes a lot of sense to me that leaves should flow through leaf blocks.
The text was updated successfully, but these errors were encountered: