Drag, Rotate and Scale -- Reality Composer Pro

Can anyone point me to an approach for handling drag, rotation and scale on a 'TargetedToAnyEnity' asset coming from a realityKitContentBundle?

I've looked through all of the code examples, and have cobbled together something using PlacementGesturesModifer and DragRotationModifier from the HelloWorld code example but I can't figure out how to make it work on individual assets -- it only works on the root.

When I do something simple like this (outside the modifier script I mentioned above) I can make individual drag work... but can't figure out how to apply the same thing to rotation and scale.

    .gesture(DragGesture()
        .targetedToAnyEntity()
        .onChanged({ value in
            value.entity.position = value.convert(value.location3D, from: .local, to: value.entity.parent!)
        })

Are there any examples of a solution for drag, rotation and scale on an individual basis in the code examples? Any advice or hints would be appreciated. :)

Answered by Vision Pro Engineer in 783409022
Drag, Rotate and Scale -- Reality Composer Pro
 
 
Q