A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
perf(editor): synchronize local tile collision frames
yhhccf4952cdde3
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ea4babac1..4a08d54f3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,6 +16,8 @@ published separately; it ships inside the editor.### Fixed+- **Tile collision overlays project only visible local chunks.** The editor culls cached local geometry before placing world points, uses each layer's current rotation, origin offset and depth, and updates moving-layer previews every frame. Chunk and shape bounds retain oversized shapes crossing the viewport. Large-map movement avoids tile readback and complete-map point allocation.+- **Tile collision follows painted and imported layer layouts.** Static boxes, rich shapes and legacy polygon helpers share layout-aware cell placement. Projected box merging preserves the authored union without filling holes. Tiled runtime collision belongs to each derived layer and follows its transform, layout edits and lifetime through the same path as painted layers. Origin-offset edits move existing bodies without re-exporting tiles, and direct Tiled loads retain their grid metadata.- **Staggered and hexagonal picking follows cell polygons.** Core queries identify the containing diamond or hexagon instead of its rectangular partition, including negative coordinates and either stagger axis/index. Drawing and coordinate queries share native grid geometry, while editor outlines use the same effective hex side limit along the stagger axis. Shared edges resolve to a touching cell; rotation and translation preserve cell ownership. Picking examines at most three neighboring stagger lines without reading tile contents.diff --git a/desktop b/desktopindex e1cf1beff..316961792 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit e1cf1beffd1084f38307a7ed923e278a2bed91c8+Subproject commit 31696179270b57240c690c2c9c5d466179da7cb5diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 65594139f..213b2eb42 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,6 +28,10 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'perf(editor): project visible tile collision chunks':+ { note: 'Tile collision overlays project only visible local chunks.' },+ 'perf(editor): synchronize local tile collision frames':+ { note: 'Tile collision overlays project only visible local chunks.' },'fix(tilemap): derive collision from each layer grid':{ note: 'Tile collision follows painted and imported layer layouts.' },'fix(tilemap): share exact staggered and hex grid geometry':