Skip to content

Fix world bounds from member shapes - #48

Open
dajiaohuang wants to merge 1 commit into
AustinEast:masterfrom
dajiaohuang:fix/world-bounds-from-members
Open

dajiaohuang wants to merge 1 commit into
AustinEast:masterfrom
dajiaohuang:fix/world-bounds-from-members

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

World.set_from_members() initialized all four bounds at zero, so members located entirely to the right/below the origin (or entirely in negative coordinates) did not produce the tight bounds described by the method. Initialize the aggregate from the first actual shape, then expand it for later shapes. If there are no shapes, leave the world's current bounds unchanged.

Added a synthetic Haxe regression test for positive-only, negative-only, and mixed-position shapes, plus a dedicated HXML entry and the repository build composite step that runs it.

Validation

  • Haxe 4.3.2: haxe test-world-bounds.hxml passed.
  • Existing test/Main.hx compiled to JavaScript; the generated JavaScript was not run.
  • git diff --check passed.
  • The full existing test HXML and sample/docs builds were not run. No CI result is claimed.

The exact frozen-window GitHub Search capture returned zero issues and zero PRs; this source-discovered fix is not presented as a response to an in-window report.

This branch has not been deployed

No deployments
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.

1 participant