小编The*_*ffe的帖子

SceneKit - SCNCamera自上而下的视图

我是来自2D SpriteKit的SceneKit的新手,并试图弄清楚如何调整相机,使其处于面向世界的顶端.我的位置部分是正确的,但是在旋转时我会卡住.如果我调整X,Y orZ axis, nothing seems to happen, however on the W axis the slightest change (even0.1"更高或更低",似乎将摄像机向未知方向移动.我究竟做错了什么?

cameraNode.position = SCNVector3Make(0, 10, 0)
cameraNode.rotation = SCNVector4Make(0, 0, 0, 0.5)
Run Code Online (Sandbox Code Playgroud)

objective-c quaternions ios scenekit swift

2
推荐指数
1
解决办法
2106
查看次数

标签 统计

ios ×1

objective-c ×1

quaternions ×1

scenekit ×1

swift ×1