Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的游戏中,用户必须单击某个点才能放置对象(网格)。我可以投射光线并找到可以平移对象的水平点,然后将其附加到 rootNode 以显示它。然而问题是,如果用户点击太靠近另一个对象/场景墙,则要放置的对象会碰到它。我怎样才能防止它?