如何将一个 SCNNode 指向另一个 SCNNode?
How can I point an SCNNode at another SCNNode?
我的场景中有一系列(平面)节点,我需要这些节点始终面向相机。
我如何调整 transform/rotation 才能正常工作?
此外,我在哪里进行计算?
目前我正在尝试在 SCNSceneRendererDelegate
renderer:updateAtTime:
委托方法中实现用户交互。
SCNBillboardConstraint
怎么样?这将您限制为 iOS 9/El Capitan/tvOS。将约束添加到每个平面(广告牌)节点。
来自 SceneKit 框架参考:https://developer.apple.com/library/ios/documentation/SceneKit/Reference/SCNBillboardConstraint_Class/index.html
An SCNBillboardConstraint object automatically adjusts a node’s orientation so that it always points toward the pointOfView node currently being used to render the scene.
在更一般的情况下,SCNLookAtConstraint
将保持任何节点的负 Z 轴指向任何其他节点。
我的场景中有一系列(平面)节点,我需要这些节点始终面向相机。
我如何调整 transform/rotation 才能正常工作?
此外,我在哪里进行计算?
目前我正在尝试在 SCNSceneRendererDelegate
renderer:updateAtTime:
委托方法中实现用户交互。
SCNBillboardConstraint
怎么样?这将您限制为 iOS 9/El Capitan/tvOS。将约束添加到每个平面(广告牌)节点。
来自 SceneKit 框架参考:https://developer.apple.com/library/ios/documentation/SceneKit/Reference/SCNBillboardConstraint_Class/index.html
An SCNBillboardConstraint object automatically adjusts a node’s orientation so that it always points toward the pointOfView node currently being used to render the scene.
在更一般的情况下,SCNLookAtConstraint
将保持任何节点的负 Z 轴指向任何其他节点。