Skip to content

Conversation

@lesbaa
Copy link
Collaborator

@lesbaa lesbaa commented Feb 6, 2026

Objective

  • Add e2e testing to intersection use cases.
  • Fixes a bug where Layer3D.removeMesh did not correctly remove the mesh from the scene.

Description

  • adds an e2e test case
  • add .remove() method to Item3D, including all cleanup logic. Implemented this logic in Layer3D.removeMesh

Acceptance

  • Manually tested
  • e2e tests and snapshots updated

Checklist

  • I have added relevant info to the CHANGELOG.md

src/Item3D.ts Outdated
// we need to make sure hte matrices are up to date
// for the OBB, AABB or sphere calcs.
this.parentLayer.updateItemMatrices();
// this.parentLayer.updateItemMatrices();

Choose a reason for hiding this comment

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

Should be commented out?

Copy link
Collaborator Author

@lesbaa lesbaa Feb 7, 2026

Choose a reason for hiding this comment

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

can get removed entirely as this happens on every render anyway.

@lesbaa
Copy link
Collaborator Author

lesbaa commented Feb 7, 2026

/update-snapshots

@lesbaa lesbaa merged commit 2f54186 into RD-759-object-relative-awareness Feb 9, 2026
1 check passed
@lesbaa lesbaa deleted the RD-1544-tests-for-intersections branch February 9, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants