ClassiCube icon indicating copy to clipboard operation
ClassiCube copied to clipboard

More accurate entity physics.

Open CybertronicToon opened this issue 7 years ago • 4 comments

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.

CybertronicToon avatar Nov 08 '17 04:11 CybertronicToon

Jump height calculation is no longer accurate with these changes.

UnknownShadow200 avatar Nov 10 '17 03:11 UnknownShadow200

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)

CybertronicToon avatar Nov 10 '17 06:11 CybertronicToon

You should also subtract "5f/16f" from bounds.Max.Y.

CybertronicToon avatar Nov 11 '17 06:11 CybertronicToon

watery I'm able to jump up the one stone block by angling into the glass. Definitely not desired behaviour.

UnknownShadow200 avatar Nov 12 '17 09:11 UnknownShadow200