![](/img/trans.png)
[英]How to use SCNTechnique to create a "masked" portal effect in SceneKit / ARKit?
[英]How to achieve below scenario, using RealityKit and RealityComposer Or use ARKit with SceneKit?
使用 ARKit on tap 我將在 SceneView 中添加一個對象(.scn 文件),並分別使用長按、平移手勢和捏合手勢執行移動、旋轉和調整大小等操作。 現在我在 RealityComposer 中添加對象並在 Xcode 中添加它並使用 RealityKit 我想分別使用長按、平移手勢和捏手勢對對象執行相同的操作,例如移動、旋轉和調整大小,然后如何使用 RealityKit 和 RealityComposer 或使用 ARKit使用 SceneKit?
我自己沒有嘗試過,但似乎你會做這樣的事情:
arView.installGestures([.rotation, .translation, .scale], for: yourEntity)
其中arView
是您的 ARView 實例,而yourEntity
是您要轉換的實體。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.