If I open a new file in Blender (i.e. showing a basic cube at origin), export it as an USDC file, add it to an Xcode project, then load it with the following code
<code>Task {
let entity = try await Entity(named: "untitled.usdc")
print(entity.transform)
}
</code>
<code>Task {
let entity = try await Entity(named: "untitled.usdc")
print(entity.transform)
}
</code>
Task {
let entity = try await Entity(named: "untitled.usdc")
print(entity.transform)
}
…it shows a weird rotation:
Transform(scale: SIMD3(1.0, 1.0, 1.0), rotation: simd_quatf(real: 0.70710677, imag: SIMD3(-0.70710677, -0.0, -0.0)), translation: SIMD3(0.0, 0.0, 0.0))
The object displays correctly – but this is still an issue for me, as I want to rely on the rotation to know which way the object is visually pointing.
I note that if I create a USDZ file directly in RealityComposer and import that no rotation is applied.