ClassiCube
ClassiCube copied to clipboard
More accurate entity physics.
Makes the entity physics more accurate. To be specific, makes water/lava breaching work properly, puts water/lava breaching in the proper location, and makes gravity happen before friction/drag in air.
Jump height calculation is no longer accurate with these changes.
Do note that
bounds.Min.Y += 5f/16f;
Should be added to TouchesAnyWater and TouchesAnyLava for LocalPlayer. And probably LiqExpand should be changed to have "1.5f/16f" for it's y value. (To adjust for the fact that water and lava are drawn 1.5/16 blocks lower)
You should also subtract "5f/16f" from bounds.Max.Y.
I'm able to jump up the one stone block by angling into the glass. Definitely not desired behaviour.