pelican-engine 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -233,6 +233,14 @@ manual cloth uses `ctx.cloth.step`. Use `setAnchor`, `releaseAnchor`, `applyForc
233
233
  (next tick), `applyImpulse`, `setColliders`, `inspect`, and `destroy` to manage it.
234
234
  The source checkout includes `examples/cloth-sheet`.
235
235
 
236
+ New cloth also resolves discrete self-contact between non-adjacent particles by
237
+ projecting movable particles apart; shared triangle edges are excluded.
238
+ `selfCollisions` defaults to true for new cloth and is reported by
239
+ `ctx.cloth.inspect(id)`. Set it to false for particle-only cloth. Self-contact
240
+ state is included in snapshots. This is particle self-contact, not triangle
241
+ interior/edge collision, continuous collision, friction or a guarantee against
242
+ penetration. It has not been runtime or stability validated.
243
+
236
244
  The CPU solver uses edge distance constraints and an optional distance-based
237
245
  bending approximation (`bending: true` by default). Sampled planes and spheres
238
246
  only move cloth particles; they do not receive reactions. Contacts do not cover
package/distribution.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "format": "pelican.npm-distribution",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "files": {
5
- "AGENTS.md": "bd599d76513789d143cc4a4ed41968806f6e2e07d8aeb85f15be89da684bad6b",
5
+ "AGENTS.md": "5d68c4774e081f092c9181fc4dfab5de2a13523d7d1666dd09419cf95cc09ed1",
6
6
  "CONTRIBUTING.md": "0ffad5d841d90f319fc50a75b81d3c0ad6dab8d5d9bec2846c65c7f8358d5a50",
7
7
  "docs/AI-WORKFLOW.md": "aa992686df93f791795f6f3fce01713d812eea6a1b9556f07411ac5847278efa",
8
- "docs/api/index.json": "d266290335d4f291374dffdd2507896ae56cc06cdb9c325a0412cae6b40b993c",
9
- "docs/api/REFERENCE.md": "9d13e6f3637a016056bbaea2b8204052a79100e4873cde9b60abe7920e0571a2",
8
+ "docs/api/index.json": "c058fa1297ee63c957395dc7963a6edd981c4c6f4c506555d3e26e8ca339d7d2",
9
+ "docs/api/REFERENCE.md": "cdf9274b8bc847b94f9ad77b57a5add4736d5412f7151477a0e2caa7057b94d0",
10
10
  "docs/ARCHITECTURE.md": "3184b73592d466390e7793b1cf39bbb80d6052b523fba7e7cb377b5207074627",
11
11
  "docs/assets/pelican-mark.svg": "407b10cd7e292ea83cf5dba4046fb2f01c7d566a14014c55deda3a2984562b4d",
12
12
  "docs/CAPABILITIES.md": "92950817497d8c63db07830db96dc93c877befa8d038320feed1ae1f1a053cb1",
@@ -14,14 +14,14 @@
14
14
  "docs/GETTING-STARTED.md": "5519ebe4e513e8ae4517c04948ee9dc70bcb1e3d04a65d468a6537c838502663",
15
15
  "docs/GRAPHICS-GUIDE.md": "e3d0f7df6189ca3f88d81af5ffaf393f5d6bf39b9e66167bb2f64b39194b514c",
16
16
  "docs/npm/DISTRIBUTION.md": "ff25e039921a85ba253c27608c77ed614a036117d7a04f908a78d1e3ed3f19ef",
17
- "docs/npm/GAME-AUTHOR.md": "bd599d76513789d143cc4a4ed41968806f6e2e07d8aeb85f15be89da684bad6b",
17
+ "docs/npm/GAME-AUTHOR.md": "5d68c4774e081f092c9181fc4dfab5de2a13523d7d1666dd09419cf95cc09ed1",
18
18
  "docs/PELICAN-MIGRATION.md": "c5d6ab8e5186f4d36720a0a01d1a7e4157a5d386c5400e2db99571a7d10a1e49",
19
19
  "docs/PHYSICS-LIFECYCLE-ISSUE.md": "cc78917462de4e7e9b68e77c742192ce213b4be5b516d2ba943251fff46977ac",
20
20
  "docs/RENDER-BACKENDS.md": "d981ea94742a835d028db37d536fb7fba05102e37bc6274a37baf74f5034b954",
21
21
  "docs/ROADMAP.md": "29ac1c54f36064e23c17cfe7f549d6860889257a57d1227e322958aa9c281568",
22
- "docs/STATUS.md": "d995a70ac23f68145864f80cb7e16a84a724d386f233cad90cdff79ddff9b25a",
22
+ "docs/STATUS.md": "65bdaf52f77b2f8bacc1d2d3809e8462482a0de0fd3e013203af55c80fc5ff8f",
23
23
  "docs/THIRD-PARTY-NOTICES.md": "58f9b72e2b4dfaaaf2a4c08b9bde9ecef3d2b7e7d65fccd782ed54f39fa76fdc",
24
- "engine.manifest.json": "9467245c8647bc3a027f3da914e2ffc8405f5040e2fc0382c348d812916df514",
24
+ "engine.manifest.json": "ad46b5ec17bcc1c4164bb2eb7431a5b448095db528917838c3706143ce517c1b",
25
25
  "lib/assets/audio.js": "6facdce4e053afd172af5b9407569b035169844ea17b49f93f8b67f72b78895f",
26
26
  "lib/assets/errors.js": "70572678655c6e53179d31920d71f29882d373a0e12d560220bb0fc2cd74f2cc",
27
27
  "lib/assets/glb.js": "b808479a36299c154db97f50c16863a3b5a2c61f725e66bf01d01a5f62a288a5",
@@ -125,10 +125,10 @@
125
125
  "lib/runtime/world.js": "c43621fbaca8bd2b0d6477a96e60e895312f0f7b1eb97614b6e4f9b716129ea1",
126
126
  "lib/schema/index.js": "594429eecb4494c4af2f3d04537be3211f2c9297a1fc555bbba5d028d8627965",
127
127
  "lib/sdk/graph-values.js": "a58c00f127cb82aba5fd2824981942844e06d9a59a88a05e35d1d3df2fc7ed2f",
128
- "lib/sdk/index.d.ts": "c6c208dfa782bc388c3d946bbd3bf4149556e11a6b0f961a90918387aa0939bb",
129
- "lib/sdk/index.js": "5332f2ab581aaf01e1fdb1e91c97c3a7106ab610f28e67bb7388ed548f387c6f",
128
+ "lib/sdk/index.d.ts": "fd5af9d29ba6a4ffe77ec535e8ae3024dcd67ece3c4968079b3594c808437ac9",
129
+ "lib/sdk/index.js": "a6de6170edcb7b31e8df05c966659cae067315d1b2f0bff32d3c5c183d35934c",
130
130
  "lib/simulation/cloth-plugin.js": "bef005219aef6aab6d91d599d9b8c94f1523d4d7141edf54bc5ec0514a452ef8",
131
- "lib/simulation/cloth.js": "595dc52d6b8c1ce55cd1b2863282b7c6b22e021767ad831ed5b9e572a5bf5bcd",
131
+ "lib/simulation/cloth.js": "97a52cf7217a76ce60aa995eafa680d8a782ae673fcac27d76df8d37d2154aaf",
132
132
  "lib/simulation/rope-body-coupling.js": "70694b73d17c79f223803a51fbf4a4dae551b717cd29bbea1fa38386ac98d621",
133
133
  "lib/simulation/rope-plugin.js": "08c7c4800053b3e8f255b6dd5be2b532b8e259300666c31de5494d15704717d4",
134
134
  "lib/simulation/rope-self-collision.js": "4d8dc5d5a88f0ae0ad5463f553f49b2ad3c8c126b98344a0966f619635bdb17f",
@@ -203,7 +203,7 @@
203
203
  "licenses/undici-types/LICENSE": "a6db8096b2707bc0102d256917d4d33f298ba36d8c3f25de067a2b5bb379db27",
204
204
  "licenses/uniq/LICENSE": "e67aed7df22dc8031e4fcf5338fe91cb33e3817e5c58a99a2a2802eea9069791",
205
205
  "licenses/vite/LICENSE.md": "a22152baa1aef74402443008e767e7c689a524c0909d19b0431d97f5ab066a13",
206
- "package.json": "06a0e516918cab7a2a8856d74593ee5c746d1105f33a591d9d15385e6aa37662",
206
+ "package.json": "61c6dc585fa85083e375ac393445e82c237f94a810aa28b1e2430402fc719721",
207
207
  "README.md": "ff25e039921a85ba253c27608c77ed614a036117d7a04f908a78d1e3ed3f19ef",
208
208
  "web/index.html": "d89d6a5b5be3beae3627a8ed506ac308b165d264fb8696be3afd79fcca2f26ee"
209
209
  }
package/docs/STATUS.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## 版本与发布
4
4
 
5
- - 当前版本为 `0.3.18`,包、锁文件、引擎、SDK、编译器和示例中的版本保持一致。下一项功能完成后统一递增并推送;相同版本不能重复发布。
5
+ - 当前版本为 `0.3.19`,包、锁文件、引擎、SDK、编译器和示例中的版本保持一致。下一项功能完成后统一递增并推送;相同版本不能重复发布。
6
6
  - 推送主线会通过 GitHub Actions 和 npm 可信发布更新 `latest`;GitHub Release 用于记录里程碑。历史版本和旧标签保持原样,不代表当前源码通过。
7
7
  - 当前按用户要求仅允许编译和构建,不运行测试、浏览器、GPU、性能或其他验证。普通版本号不意味着运行行为、硬件或完整引擎已验收。
8
8
 
@@ -14,7 +14,7 @@
14
14
  - 正交网格导航新增批量障碍更新接口;它只处理单个网格的阻挡状态,不等于世界流送、实体变换或物理联动。该增量尚未进行运行行为验证。
15
15
  - CPU 粒子绳索已接入 `ctx.ropes` 和 Host 快照,支持手动或自动固定步进。显式绑定的动态非触发球体可在物理阶段后被采样,并接收绳索投影产生的反冲量;其他采样球体/平面仍为单向。可选分段圆柱实例随粒子位置更新;它不是连续变形绳索网格。新绳索默认对绳段内部与球体的离散重叠求解,旧粒子型快照保留原模式;新增非相邻绳段间离散自接触和扫掠式宽相,可关闭;尚无完整双向求解、跨绳索碰撞、连续碰撞或撕裂。渲染、碰撞、性能、运行行为和快照兼容均未验证。
16
16
  - 动态球体绑定的接触响应已纳入刚体接触点速度、有效逆质量和转动惯量;绳索阶段使用虚拟状态、按绳索顺序求解并延迟提交冲量。真实刚体位移在下一物理步更新,仍无全局耦合子步、摩擦、恢复系数或连续碰撞,不代表完整双向物理。稳定性、守恒、运行和快照兼容尚未验证。
17
- - 三角布料新增 CPU 距离约束、近似弯曲、锚点、受力、采样球体/平面粒子碰撞、Host 快照及动态网格入口;不包含面/边碰撞、自碰撞、刚体反作用、撕裂或连续碰撞。渲染、运行、稳定性、性能和快照兼容均未验证,不代表完整布料能力。
17
+ - 三角布料新增 CPU 距离约束、近似弯曲、锚点、受力、采样球体/平面粒子碰撞、非相邻粒子自碰撞、Host 快照及动态网格入口;不包含面/边碰撞、刚体反作用、撕裂或连续碰撞。渲染、运行、稳定性、性能和快照兼容均未验证,不代表完整布料能力。
18
18
  - 布料、绳索、软体、流体、连续世界、导航、动画、音频和其他首发能力仍需按各自依赖完成,不能把独立候选或局部实现写成整项完成。
19
19
 
20
20
  ## 单线接续