作为标题,我想确定运行时ARcore中的平面是垂直还是水平。 我该怎么办?
答案 0 :(得分:0)
来自authorized:
Plane.Type t = yourPlane.getType();
if(t == Plane.Type.VERTICAL)
// Vertical plane
else if(t == Plane.Type.Plane.Type HORIZONTAL_DOWNWARD_FACING)
// Ceiling, camera looking up at
else if(t == Plane.Type.Plane.Type HORIZONTAL_DOWNWARD_FACING)
// Floor, ground, camera looking down at