Skip to content

test: cover TransformGroup apply paths (positions + scales)#34

Merged
manaporkun merged 1 commit into
mainfrom
test/group-apply-paths
Jun 1, 2026
Merged

test: cover TransformGroup apply paths (positions + scales)#34
manaporkun merged 1 commit into
mainfrom
test/group-apply-paths

Conversation

@manaporkun
Copy link
Copy Markdown
Owner

@manaporkun manaporkun commented Jun 1, 2026

From #26 (test coverage). Adds PlayMode coverage for the previously-untested multi-target apply methods in TransformGroup:

  • UpdatePositions offsets every member by the delta
  • UpdateScales pivot-origin: adds to localScale, leaves position
  • UpdateScales center-origin: exercises the IsOriginOnCenter + renderer branch (scales a centered cube in place)

test: only + under Tests/ → excluded from the bump filter (#29) → no release on merge.


Note

Low Risk
Test-only changes under Tests/ with no production or runtime behavior changes.

Overview
Adds PlayMode tests in TransformGroupTests for multi-target apply behavior on TransformGroup that was not covered before (rotation tests already existed).

New coverage checks that UpdatePositions applies the same world delta to every group member, and that UpdateScales behaves correctly for pivot-origin targets (adds to localScale, position unchanged) and center-origin targets with a renderer (primitive cube stays in place while scale increases). A small NewCube helper creates a primitive cube with a MeshRenderer for the center-origin case.

Reviewed by Cursor Bugbot for commit 5509a14. Bugbot is set up for automated code reviews on this repo. Configure here.

Adds PlayMode coverage for the previously-untested multi-target apply methods:
- UpdatePositions offsets every member by the delta
- UpdateScales pivot-origin adds to localScale and leaves position
- UpdateScales center-origin (IsOriginOnCenter + renderer branch) scales a
  centered cube in place
@manaporkun manaporkun merged commit 229fb0f into main Jun 1, 2026
7 checks passed
@manaporkun manaporkun deleted the test/group-apply-paths branch June 1, 2026 23:23
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