Collision Detection for fast moving game object in Unity [duplicate]

假装没事ソ 提交于 2019-12-02 11:56:21

I understand that this question may be similar to the one posted in the comments however I did find another solution that may be of some use to people who have this exact issue.

The error was occurring because my "Bullet" prefab was moving so fast that it wasn't able to detect a collision.

Fix: I changed the Collision Detection property of the Bullet prefabs Rigidbody to Continuous Dynamic because it is moving fast. Full reference to Rigidbody Collision Detection Modes the link is below.

https://docs.unity3d.com/ScriptReference/Rigidbody-collisionDetectionMode.html

The difference between this and the "similar" question's answer posted in the comments is that answer has a lot to do with Raycasting versus very simple colliders (which is more of what I was looking for).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!