Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
保持同一个 Collider 原位替换 PhysX 形状时的实体碰撞事件连续。
本 PR 基于 #3195。从其原实现中拆出接触状态和两项专项回归,几何替换和 Trigger 派发由 #3195 提供。
可观察行为
capsule.height设为 1 并推进一个物理步。主分支直接转发原生事件,旧接触缺少退出通知。应用本 PR 后,盒子与缩成的球分离时会收到一次onCollisionExit。MeshCollider.convex设为false,保持盒子的位置。主分支会再次派发onCollisionEnter。应用本 PR 后仍相接的 Collider 收到onCollisionStay。后续分离时正常退出。实现
验证
pnpm run build通过。构建产物涵盖模块和类型声明。Collider、MeshCollider、PhysicsScene、Collision定向回归,标准 WASM 和 SIMD 各通过 270 项。d45f607da使用原生接触阶段,仍相接的形状替换会把首次 Enter 转为 Stay。模块与类型构建通过,Chromium 物理目录在标准 WASM 和 SIMD 下各通过 798 项。