首页 > 解决方案 > Reality Composer 默认锚点

问题描述

当您使用 Reality Composer 创建任何场景时,您必须首先选择哪种类型的锚点“地板、墙壁、面、对象”,这意味着当您加载场景时,它会自动将其放置到指定的锚点。

在此处输入图像描述

我的问题是,有什么方法可以从代码中手动设置它,以便我例如进行命中测试,然后手动将其锚定到特定点?

谢谢。

标签: swiftaugmented-realityarkitrealitykitreality-composer

解决方案


官方文档没有提及能够在运行时更改默认锚点,但从您的描述看来,您可以Select Object Anchoring to Place a Scene Near Detected Objects按照此处所述尝试: https ://developer.apple.com/documentation/realitykit/creating_3d_content_with_reality_composer/selecting_an_anchor_for_a_reality_composer_scene


推荐阅读