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
chore(ci): the gates follow the spring bones and the character shaders, and the AgX table is declared third-party data
yhh7ce316fa6eb3
diff --git a/desktop b/desktopindex ae7d1651e..7ac0421b5 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit ae7d1651e348c32eba57c5b3ab35b850c6d6864f+Subproject commit 7ac0421b5d30098e06cb0a64ac3d269958704ac7diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.jsonindex 7ee18b547..b0daabccd 100644--- a/docs/astro/src/data/apiStability.generated.json+++ b/docs/astro/src/data/apiStability.generated.json@@ -3,10 +3,10 @@"counts": {"public": 115,"beta": 171,- "experimental": 2376,+ "experimental": 2388,"deprecated": 3},- "total": 2662,+ "total": 2674,"subsystems": [{"id": "mobile-controls",diff --git a/docs/astro/src/data/componentDocs.ts b/docs/astro/src/data/componentDocs.tsindex 1b13b54b6..514ec94cc 100644--- a/docs/astro/src/data/componentDocs.ts+++ b/docs/astro/src/data/componentDocs.ts@@ -167,6 +167,8 @@ export const COMPONENT_DOCS: Record<string, ComponentDoc> = {// ── Animation ──────────────────────────────────────────────────────────────Animator: { category: 'animation', summary: 'Runs an animator controller — states, transitions and blend trees — over the entity.', doc: 'animation/overview', anchor: 'animator-state-machine', anchorZh: '动画状态机' },AnimatorRootMotion: { category: 'animation', summary: 'Publishes how far the active animation asks the character to move, for gameplay to hand to a character controller — a request, never a result.', doc: 'animation/overview', anchor: 'root-motion', anchorZh: '根运动' },+ SpringBone: { category: 'animation', summary: 'Makes every bone below this root a spring: the chain trails the animated pose by inertia, falls with gravity and is pulled back toward it (hair, tails, cords).', doc: 'animation/spring-bones', anchor: 'the-component', anchorZh: '组件' },+ SpringBoneCollider: { category: 'animation', summary: 'A sphere or capsule that the spring-bone chains naming it are kept out of.', doc: 'animation/spring-bones', anchor: 'the-component', anchorZh: '组件' },SpriteAnimator: { category: 'animation', summary: 'Plays a flipbook clip by swapping the sprite frame, with speed, looping and frame events.', doc: 'animation/overview', anchor: 'sprite-animation', anchorZh: '精灵动画' },TimelinePlayer: { category: 'animation', summary: 'Plays a timeline asset — keyframed tracks across many entities — with wrap modes and playback control.', doc: 'animation/timeline', anchor: 'attach-a-timeline', anchorZh: '附加时间轴' },SpineAnimation: { category: 'animation', summary: 'A Spine skeleton: its skeleton and atlas assets, current animation, skin and mix settings.', doc: 'animation/spine', anchor: 'the-spineanimation-component', anchorZh: 'spineanimation-组件' },diff --git a/docs/astro/src/data/components.generated.json b/docs/astro/src/data/components.generated.jsonindex a0dd65360..9584278f6 100644--- a/docs/astro/src/data/components.generated.json+++ b/docs/astro/src/data/components.generated.json@@ -1617,12 +1617,20 @@"type": "array","default": "empty","doc": "Points of the body, in its own space, the water is asked about: spread them (the corners of a hull) and waves tip it. Empty is the one at its origin."+ },+ {+ "key": "wake",+ "type": "number",+ "default": "1",+ "doc": "How much of a ripple the body makes in water that keeps ripples (WaterBody Ripples). 0 makes none.",+ "range": "0–10"}],"animatable": ["buoyancy","drag",- "radius"+ "radius",+ "wake"]},{@@ -4702,6 +4710,121 @@}]},+ {+ "name": "SpringBone",+ "source": "cpp",+ "fields": [+ {+ "key": "enabled",+ "type": "boolean",+ "default": "true",+ "doc": "Off leaves the chain exactly as the animation poses it."+ },+ {+ "key": "stiffness",+ "type": "number",+ "default": "0.1",+ "doc": "How hard each bone is pulled back toward its animated pose. 0 hangs free, 1 follows the animation exactly.",+ "range": "0–1, step 0.01"+ },+ {+ "key": "drag",+ "type": "number",+ "default": "0.5",+ "doc": "How much of its speed a bone loses each frame. Higher settles sooner.",+ "range": "0–1, step 0.01"+ },+ {+ "key": "gravity",+ "type": "Vec3",+ "default": "(0, -980, 0)",+ "doc": "Gravity on the chain, in world units a second squared (world y is up)."+ },+ {+ "key": "wind",+ "type": "Vec3",+ "default": "(0, 0, 0)",+ "doc": "A steady wind on the chain, in world units a second squared. Zero is still air."+ },+ {+ "key": "windGust",+ "type": "number",+ "default": "0",+ "doc": "How far gusts swing the wind's strength. 0 is a steady wind, 1 takes it from calm to twice its strength.",+ "range": "0–1, step 0.01"+ },+ {+ "key": "windFrequency",+ "type": "number",+ "default": "0.5",+ "doc": "Gusts a second.",+ "range": "≥ 0, step 0.05"+ },+ {+ "key": "endLength",+ "type": "number",+ "default": "0",+ "doc": "Length of the tip past each end bone, in world units. 0 leaves the end bones unsimulated.",+ "range": "≥ 0, step 0.1"+ },+ {+ "key": "radius",+ "type": "number",+ "default": "0",+ "doc": "Thickness of the strand, in world units, kept clear of the colliders.",+ "range": "≥ 0, step 0.1"+ },+ {+ "key": "weight",+ "type": "number",+ "default": "1",+ "doc": "How much of the simulation is used. 0 is the animation alone.",+ "range": "0–1, step 0.01"+ },+ {+ "key": "colliders",+ "type": "Entity",+ "default": "",+ "doc": "Entities with a SpringBoneCollider that this chain is kept out of (the head, the shoulders)."+ }+ ]+ },+ {+ "name": "SpringBoneCollider",+ "source": "cpp",+ "fields": [+ {+ "key": "shape",+ "type": "enum",+ "default": "Sphere",+ "doc": "Sphere, or a capsule along the entity's own Y axis.",+ "values": [+ "Sphere",+ "Capsule"+ ]+ },+ {+ "key": "radius",+ "type": "number",+ "default": "10",+ "doc": "Radius in world units, before the entity's scale.",+ "range": "≥ 0, step 0.1"+ },+ {+ "key": "height",+ "type": "number",+ "default": "20",+ "doc": "A capsule's length between the centres of its end spheres, in world units before scale.",+ "range": "≥ 0, step 0.1"+ },+ {+ "key": "offset",+ "type": "Vec3",+ "default": "(0, 0, 0)",+ "doc": "Where the centre of the shape is, in the entity's own space."+ }+ ]+ },{"name": "Sprite","source": "cpp",@@ -7188,6 +7311,41 @@"default": "30","doc": "The heading of the waves, in degrees.","range": "0–360"+ },+ {+ "key": "ripples",+ "type": "number",+ "default": "0",+ "doc": "Cells along a side of the grid that keeps what disturbs the water: bodies moving in it, and what a script disturbs. 0 keeps none.",+ "range": "0–256, step 8"+ },+ {+ "key": "rippleSize",+ "type": "number",+ "default": "64",+ "doc": "The side of the window the ripples are kept in, in world units. It follows the camera.",+ "range": "≥ 4"+ },+ {+ "key": "rippleSpeed",+ "type": "number",+ "default": "6",+ "doc": "How fast a ripple spreads, in world units a second.",+ "range": "0.1–40"+ },+ {+ "key": "rippleDamping",+ "type": "number",+ "default": "0.8",+ "doc": "How much of its height a ripple loses each second.",+ "range": "0–10"+ },+ {+ "key": "foamFade",+ "type": "number",+ "default": "0.4",+ "doc": "How fast the foam a disturbance leaves fades, a second.",+ "range": "0–10"}],"animatable": [@@ -7203,7 +7361,12 @@"waveHeight","waveLength","waveSpeed",- "waveDirection"+ "waveDirection",+ "ripples",+ "rippleSize",+ "rippleSpeed",+ "rippleDamping",+ "foamFade"]},{diff --git a/tools/apiSubsystems.mjs b/tools/apiSubsystems.mjsindex 5ce4e79d7..f6609bed5 100644--- a/tools/apiSubsystems.mjs+++ b/tools/apiSubsystems.mjs@@ -202,7 +202,7 @@ export const SUBSYSTEMS = [id: 'animation',title: 'Animation & timeline',titleZh: '动画与时间轴',- source: ['animation', 'timeline'],+ source: ['animation', 'timeline', 'springbone'],tier: 'beta',why: 'sprite-animation now certifies it end to end, but the corpus reaches two of eighty animation symbols and the timeline half of them is untouched',whyZh: 'sprite-animation 现在端到端认证了它,但语料只触到 80 个动画符号里的 2 个,而其中时间轴那一半完全没被碰过',@@ -288,7 +288,7 @@ export const SUBSYSTEMS = [id: 'rendering',title: 'Materials, lighting, post-processing',titleZh: '材质、光照、后处理',- source: ['render', 'postprocess'],+ source: ['render', 'postprocess', 'character'],tier: 'experimental',why: 'as AI — a game is built OUT of the layers under this one and they freeze first; '+ 'the render graph it was waiting on has settled',diff --git a/tools/check-corpus-authoring.mjs b/tools/check-corpus-authoring.mjsindex 32be9d15e..d6b5732ac 100644--- a/tools/check-corpus-authoring.mjs+++ b/tools/check-corpus-authoring.mjs@@ -126,6 +126,8 @@ const DISPOSITION = {Floating: ['owed', 'no example floats anything yet; the first boat or buoy goes into one'],Spline: ['owed', 'no example carries a spline yet; the first river, with a spline tool in the editor, goes into one'],WaterBody: ['owed', 'no example carries a body of water yet; the first of the water work that is shown off (rivers, with the spline) goes into one'],+ SpringBone: ['owed', 'no example carries a rigged character with hair or a tail yet; the first one imported with its chains goes into one'],+ SpringBoneCollider: ['owed', 'no example has a spring-bone chain to keep out of anything; it arrives with the first SpringBone'],Replicated: ['code-only', 'multiplayer-arena declares its replicated set beside the server systems that own it; the wire table is a contract both ends compile against, not scene content'],// — owed: a creator-facing component nothing in the shipped corpus authors.diff --git a/tools/check-gizmo-coverage.mjs b/tools/check-gizmo-coverage.mjsindex 44887a479..18a76de72 100644--- a/tools/check-gizmo-coverage.mjs+++ b/tools/check-gizmo-coverage.mjs@@ -64,6 +64,8 @@ const DISPOSITION = {'BoxCollider2D.halfExtents': 'extent','WaterBody.sizeX': 'extent','WaterBody.sizeZ': 'extent',+ 'SpringBoneCollider.radius': 'extent',+ 'SpringBoneCollider.height': 'extent','Hunter.attackRange': 'extent','Perceiver.range': 'extent','ThirdPersonCamera.distance': 'extent',@@ -126,6 +128,8 @@ const DISPOSITION = {'Floating.radius': ['no-place', 'how deep under the surface a point of the body is wholly wet, not a region of the entity'],'WaterBody.cellSize': ['no-place', 'the cell size of the finest ring of geometry, not a region of the entity'],'WaterBody.waveHeight': ['no-place', 'the height of the tallest wave, not a region of the entity'],+ 'WaterBody.rippleSize': ['no-place', 'the side of a window of ripples that follows the camera, not a region of the entity'],+ 'SpringBone.radius': ['no-place', 'the thickness of the strand, kept clear of the colliders; a margin on each bone, not a region of the root'],'Sprite.size': ['renders', 'the sprite drawn at it is the outline'],'Sprite.tileSize': ['renders', 'the repeat of a drawn sprite'],'ShapeRenderer.size': ['renders', 'the shape drawn at it is the outline'],diff --git a/tools/lib/contractFacts.mjs b/tools/lib/contractFacts.mjsindex dc5b148f0..057a1c90c 100644--- a/tools/lib/contractFacts.mjs+++ b/tools/lib/contractFacts.mjs@@ -347,4 +347,6 @@ export const RE_EXPORTS = {export const NOT_CONTRACT = {'sdk/etc/perf.snapshot.json':'a measured baseline, not a derivation — accepted with `perf-guard --update`.',+ 'sdk/src/postprocess/agxLut.generated.ts':+ "a table baked once from Blender's AgX .cube by tools/gen-agx-lut.py — third-party data, nothing in the engine it must agree with.",};