You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# PR_26133_033 Asteroids Collision And Object Vector Defaults Report
2
+
3
+
Date: 2026-05-14
4
+
5
+
## Scope
6
+
7
+
This change restores Asteroids collision behavior and moves Object Vector Studio V2 object/shape creation defaults into schema definitions while keeping object ids as the runtime SSoT.
8
+
9
+
## Collision Fixes
10
+
11
+
- Updated Asteroids asteroid collision-profile extraction to read point geometry from shape `tool: "polygon"`, matching the reduced Object Vector schema contract.
12
+
- Confirmed Asteroids small, medium, and large asteroid profiles load polygon collision points from `games/Asteroids/game.manifest.json -> game.workspace.tools["object-vector-studio-v2"].objects[*].shapes[*].geometry`.
13
+
- Added ship bullet vs UFO bullet crossfire collision resolution.
- No vector-map-editor fallback geometry was added or restored.
16
+
17
+
## Schema Defaults
18
+
19
+
- Added defaults to `tools/schemas/game.manifest.schema.json` for Object Vector Studio V2 object, shape common fields, style, transform, point2d, and all supported geometry definitions.
20
+
- Mirrored the same defaults in `tools/schemas/tools/object-vector-studio-v2.schema.json` for standalone Object Vector Studio V2 validation/loading.
21
+
- Added whole-object defaults for polygon and triangle geometry; polygon defaults use five points, and triangle defaults use exactly three points.
22
+
23
+
## Tool Default Loading
24
+
25
+
- Added `ObjectVectorStudioV2SchemaService.getDefinitionDefault()` so Object Vector Studio V2 clones defaults from the loaded schema.
26
+
- New object creation now starts from the schema object default and applies the user-entered id/name/tags.
27
+
- New shape creation now reads shape common, style, transform, and geometry defaults from schema definitions.
28
+
- Missing schema defaults now produce visible blocked create/add failures instead of silent hardcoded fallback creation.
29
+
- Shape transform origin remains derived from the created geometry bounds so current editing behavior stays centered; the transform base values come from the schema default.
30
+
31
+
## Workspace Launch
32
+
33
+
- Workspace Manager V2 generated Asteroids Object Vector payloads were verified with no `assetLibrary` field.
34
+
- Generated `objects[*].tags` were verified present, including `object.asteroids.asteroid.small` tags `["asteroid", "small"]` loaded from the Asteroids manifest.
35
+
36
+
## Validation
37
+
38
+
- PASS - `npm run test:workspace-v2` -> 49 passed.
39
+
- PASS - targeted Asteroids collision timing/stress checks for collision profiles and requested collision pairs.
40
+
- PASS - targeted Asteroids validation smoke.
41
+
- PASS - Node schema validation for `games/Asteroids/game.manifest.json` and generated workspace manifest.
42
+
- PASS - search check found no Asteroids vector-map fallback geometry or `assetLibrary` payload usage outside schema rejection guards.
@@ -40,4 +40,4 @@ PASS - Coverage reporting was generated during `npm run test:workspace-v2`.
40
40
41
41
## PR-Specific Note
42
42
43
-
The Workspace V2 run exercised the Object Vector Studio V2 editor, schema service, runtime object-vector asset service, Asteroids runtime object-vector loading, and browser UI paths for fill/stroke opacity plus point2d geometry. Coverage remains advisory only.
43
+
The Workspace V2 run exercised Object Vector Studio V2 launch, schema loading, schema-driven shape creation, generated Asteroids object-vector payload validation, and Asteroids runtime object-vector loading. Coverage remains advisory only.
-Focused rerun before the full suite: 1 passed for the Object Vector Studio V2 schema-only palette gate after opacity-control test updates.
13
+
-Runtime/console guard: Workspace V2 tests that monitor page errors completed with no reported page errors.
14
14
15
15
## PR-Specific Coverage
16
16
17
-
- Fill and stroke opacity controls apply to selected Object Vector shapes and persist as `fillOpacity` / `strokeOpacity`.
18
-
- Object Vector Studio V2 loads Asteroids object tags from `objects[*].tags` with no `assetLibrary` payload.
19
-
- Polygon editing enforces the new minimum of 4 points; default created polygons use 5 points.
20
-
- Triangle shapes use fixed 3-point triangle geometry and keep Add/Delete Point hidden.
21
-
- Line geometry loads/edits through `point1` / `point2`.
22
-
- Transform origin loads/edits through `origin: { x, y }`.
23
-
- Runtime object-vector rendering uses object ids as SSoT and validates the reduced Object Vector payload.
24
-
- Runtime console checks: covered Workspace V2 flows asserted no page errors or console errors where the suite monitors them.
17
+
- Object Vector Studio V2 schema defaults are present in the game manifest schema and the standalone tool schema.
18
+
- New rectangle creation was verified against schema-cloned geometry/style/transform defaults.
19
+
- Workspace Manager V2 generated the Asteroids Object Vector payload without `assetLibrary` and with `objects[*].tags` present.
20
+
- Launching Object Vector Studio V2 for Asteroids from Workspace Manager V2 loaded 6 objects and validated the payload.
21
+
- Dirty-state and save validation still pass after the generated manifest cleanup.
25
22
26
23
## Additional Validation
27
24
28
-
PASS - Custom manifest/schema validation loaded `games/Asteroids/game.manifest.json`, validated the embedded Object Vector Studio V2 payload, and loaded it through `ObjectVectorRuntimeAssetService`.
0 commit comments