Dun*_*rts 5 unity-game-engine arcore
我只是在玩AR核心,想让一个物体在房间里飞来飞去并能够着陆。我不确定如何根据房间的视觉效果将碰撞器添加到ARcore生成的飞机上。这会涉及以某种方式实例化飞机上的撞机盒吗?
ARCore SDK的可跟踪平面本质上是标识为平坦的表面,例如地面或桌面。
You can ask the SDK for a list of points for each trackable plane's boundary polygon (retrieved in clockwise order) and create a mesh from those points via triangulation. With the mesh ready, create a GameObject and add a MeshCollider component that references it.
I've created a free Unity plugin that does exactly this. Feel free to use it: https://github.com/jonas-johansson/ARCoreUtils.
I hope that helps!
| 归档时间: |
|
| 查看次数: |
2660 次 |
| 最近记录: |