sách gpt4 ai đã đi

swift - ARKit相机初始位置?

In lại 作者:行者123 更新时间:2023-11-30 11:32:46 25 4
mua khóa gpt4 Nike

override func viewDidLoad() {
super.viewDidLoad()

// Set the view's delegate
sceneView.delegate = self

// Show statistics such as fps and timing information
sceneView.showsStatistics = true

// Create a new scene
let scene = SCNScene(named: "art.scnassets/exemple.dae")!


// Set the scene to the view
sceneView.scene = scene

}

我导入了这个模型,但无法按照我想要的方式放置相机,如何将相机连接到我的 3D 模型的相机?或者如何管理AR的初始相机?

1 Câu trả lời

要更改模型的默认方向,请首先从 Xcode 导航器中选择模型文件,然后将相机视角Đặt thành(从底部栏)。当模型加载到场景中时,这将显示模型的准确 View 。

然后,要更改模型的位置和方向,请从右侧菜单(立方体图标)中选择节点检查器,然后更改欧拉 x、y、z 值。

关于swift - ARKit相机初始位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50085703/

25 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com