When interacting with a RealityKit scene (built in RealityKit Composer), how do you access the camera position for each rendered frame?
// In ARView
var cameraTransform: Transform { get }
I see the cameraTransform propery, but how can I get a callback or event for when each frame is about to be rendered? I'd like to alter some objects based on the position of the camera, but more than can be done with triggers in RKC.
Did the SwiftStrike demo at WWDC need to do that ? Or did they just have the camera impart a force on the ball as the player went near it?
Thanks,
MF