Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么ColliderRead定义了ColliderType,但是Overlaps的时候全是用AABB来检测? #33

Open
zwluoqi opened this issue Mar 29, 2023 · 1 comment

Comments

@zwluoqi
Copy link

zwluoqi commented Mar 29, 2023

image
大致看了下ColliderRead最终检测的代码,发现全是用AABB检测,没有基于ColliderType来处理,导致上面领带一直打到上面的AABB方块上,而不是collide上,请问下有方法配置吗?

@OneYoungMean
Copy link
Owner

您好,感谢您的提问.
很抱歉您遇到的问题,我对代码进行了仔细的测试,其中碰撞体工作的部分位于https://github.com/OneYoungMean/Automatic-DynamicBone/blob/master/ADB%20Unity%20Project/Assets/Automatic%20Dynaimc%20Bone/Runtime/ADBRunTimeJobsTable.cs的279与755行,我暂时没有能够复现你所遇到的问题.
以下是我的建议:

  1. 由于怀疑AABB出现问题,我个人建议您可以尝试屏蔽AABB快速判断的流程,我在源码的注释当中注明了它,并查看问题仍然是否存在.
  2. 尝试利用collierMask的属性屏蔽一部分碰撞体.
    祝一切顺利.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants