I've been experimenting with creating interactions on RealityKit scenes i've created in RealityComposer.
Based on samples i've got this working:
// Setup AR Session
let arConfiguration = ARWorldTrackingConfiguration()
arConfiguration.planeDetection = .horizontal
arView.session.run(arConfiguration)
// Load the "Box" scene from the "Experience" Reality File
let boxScene = try! Experience.loadBox()
boxScene.generateCollisionShapes(recursive: true)
let box = boxScene.greybox as? Entity & HasCollision
arView.installGestures(for: box!)
However, Rotation doesn't seem to do anything. I've tried :
arView.installGestures([.scale], for: box!)
and
arView.installGestures([.translation], for: box!)
individually and they both work fine but even if I assert .rotation there appears to be no action on the obvious multi-finger rotate gestures. Do I need to provide a method to handle this or have I mis-understood how this is supposed to work?