Skip to content

[Bug] Vertical Slope incorrect hitbox #369

@Redstonneur1256

Description

@Redstonneur1256

Describe the bug
The hitbox of the vertical slope is slightly offset on the direction counterclockwise of the slope's facing. Causing incorrect collision and gaps through blocks

To Reproduce
Disable the shape's custom outline to clearly see the shape

Expected behavior
For the hitbox to be aligned with the block.

Screenshots

Current Expected

Desktop:

  • Minecraft Version: 1.20.1
  • Mod Loader Forge
  • Mod Version 3.0.2 build 25

Suspected cause

.mapToObj(i -> aabb((i + 1.0) / SLOPE_SUBDIVISIONS * 16.0, 16, 16.0 / SLOPE_SUBDIVISIONS).move(15 - i * 16.0 / SLOPE_SUBDIVISIONS, 0, i * 16.0 / SLOPE_SUBDIVISIONS))

should be move(16 - (i + 1.0) * ... not move(15 - i * ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions