Skip to content

Schema widget fixes - #172

Merged
gustovafing merged 3 commits into
1.20.1from
gus/fix-schema-zoom
Dec 1, 2026
Merged

gustovafing merged 3 commits into
1.20.1from
gus/fix-schema-zoom

Conversation

@gustovafing

Copy link
Copy Markdown
Member

What

Schema widget fixes:

  • Fix the camera zoom being wrong due to an extra translation being performed
  • Add a drawAdditional call so that additional highlights, etc can be drawn after the world is without requiring a large override.
  • Fix the raytracer intersecting with blocks that are in the level, but not in the schema.

AI used: @jurrejelle used Claude Code initially for debugging the camera zoom, other fixes were done without AI

@jurrejelle jurrejelle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opus 5.5 assisted review

this.min = BlockPosUtil.getMin(min, max);
this.max = BlockPosUtil.getMax(min, max);
this.center = BlockPosUtil.getCenterF(min, max);
this.aabb = new AABB(min, max);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this box, in world space, contains the bottom left corner of min -> the bottom left corner of max. that does not contain any of the centers of max's blocks. An easy fix would be new AABB(this.min, this.max.offset(1, 1, 1)), which is semantically more correct with the concept of a bounding box anyways

@gustovafing
gustovafing merged commit e64d519 into 1.20.1 Dec 1, 2026
1 check passed
@gustovafing
gustovafing deleted the gus/fix-schema-zoom branch December 1, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants