Unity Collider 不适用于盒子和圆形碰撞器

Unity Collider doesn't work for box and circle collider

我创建了两个游戏对象。

一个是盒子,一个是球。然后我添加了碰撞器(盒子碰撞器和圆形碰撞器)来碰撞它们。但它不起作用。当我按下播放按钮时,球就会掉到永恒 ^^。 我在互联网上搜索并寻找可能的解决方案,但没有奏效。

*触发器是否未选中。 *将 rigidbody2d 附加到球上。

如有任何帮助,我们将不胜感激。感谢您的关注

BoxCollider and CircleCollider2D interact with physics in different dimensions, box collider physics are calculated in 3D while circle collider physics are calculated in 2D. In Unity, 3D physics and 2D physics are calculated separately so collisions between 2D and 3D colliders isn't possible. You will have to replace your box collider with a BoxCollider2D or replace your circle collider with a SphereCollider。祝你好运!