So I have a RealityView with an Entity (from my bundle) being rendered in it like so:
struct ImmersiveView: View {
var body: some View {
RealityView { content in
// Add the initial RealityKit content
if let entity = try? await Entity(named: "MyContent", in: realityKitContentBundle) {
content.add(entity)
}
}
}
}
Is it possible to programatically transform the entity? Specifically I want to (1) translate it horizontally in space, eg 1m to the right, and (2) rotate it 90°. I've been looking through the docs and haven't found the way to do this, but I fear I'm not too comfortable with Apple docs quite yet.
Thanks in advance!