我正在尝试沿水平面移动模型,在UnityARHitTestExample场景中对其进行测试。我一键放置了一个模型,当我单击其他水平面时,它跳到了那里。此外,当我添加更多模型并单击一个在水平面上,所有模型都立即跳跃。如何分别在水平面上平滑地平移模型?是否应该在模型中添加对撞机,并与raycast一起使用,以使单个模型在水平面上移动?
// prioritize reults types
ARHitTestResultType[] resultTypes = {
//ARHitTestResultType.ARHitTestResultTypeExistingPlaneUsingGeometry,
//ARHitTestResultType.ARHitTestResultTypeExistingPlaneUsingExtent,
// if you want to use infinite planes use this:
//ARHitTestResultType.ARHitTestResultTypeExistingPlane,
ARHitTestResultType.ARHitTestResultTypeEstimatedHorizontalPlane,
//ARHitTestResultType.ARHitTestResultTypeEstimatedVerticalPlane,
//ARHitTestResultType.ARHitTestResultTypeFeaturePoint
};