I am using the "toy_biplane" and "teapot" models in ARView, I was able to augment them but the gestures for scaling, rotation and translation are not working.
Following is my code:
Following is my code:
Code Block func updateUIView(_ uiView: ARView, context: Context) { if let model = modelConfirmedForPlacement { if let modelEntity = model.modelEntity { modelEntity.generateCollisionShapes(recursive: true) modelEntity.name = modelConfirmedForPlacement!.modelName uiView.installGestures([.translation,.rotation,.scale]for: modelEntity) let anchorEntity = AnchorEntity(plane: .any) anchorEntity.name = modelEntity.name anchorEntity.addChild(modelEntity.clone(recursive: true)) uiView.scene.addAnchor(anchorEntity) } else { print("DEBUG: Unable to load ModelEntity->\(model.modelName)") } DispatchQueue.main.async { modelConfirmedForPlacement = nil } } }