统一地,得到地板的位置的代码在这里显示。

android/java中的等效形式是什么?我在文档中找不到类似的东西。
发布于 2017-01-13 16:30:58
Native的工作方式与Unity不同。具体而言,在Android上,您需要查看ARGyroPlaceManager类。正如getWorld的方法描述中所述:
The world is placed where the camera normal intersects the floor plane.因此,“地板”的位置是陀螺位置经理的世界节点的位置。简单地说:
ARGyroPlaceManager gpm = ARGyroPlaceManager.getInstance();
ARVector3 vector = gpm.getWorld().getPosition();你可以得到陀螺仪位置经理的世界的三维位置和延伸,三维位置的“地板”,就像你会收到在统一插件。
https://stackoverflow.com/questions/41638851
复制相似问题