Thank you.
This is what I implemented as per my requirements.
If anybody has any suggestions. feel free to add.
if (model.editWindowAdded) {
guard worldTracking.state == .running else { return }
let deviceAnchor = worldTracking.queryDeviceAnchor(atTimestamp: CACurrentMediaTime())
guard let deviceAnchor, deviceAnchor.isTracked else { return }
let theattachment = attachments.entity(for: "sample")!
entityDummy.addChild(theattachment)
entityDummy.setTransformMatrix(model.handAnchorLeft.originFromAnchorTransform, relativeTo: nil)
theattachment.position = [0, 0.1, 0]
entityDummy.look(at: SIMD3<Float>(deviceAnchor.originFromAnchorTransform.columns.3.x,deviceAnchor.originFromAnchorTransform.columns.3.y,deviceAnchor.originFromAnchorTransform.columns.3.z), from: entityDummy.position, relativeTo: nil)
let theyasix = entityDummy.transformMatrix(relativeTo: nil).gravityAligned.rotation
entityDummy.setOrientation(theyasix, relativeTo: nil)
let newOrientation1: Rotation3D
let orientation2 = Rotation3D(entityDummy.orientation(relativeTo: nil))
newOrientation1 = orientation2.rotated(by: .init(angle: .degrees(180), axis: .y))
entityDummy.setOrientation(.init(newOrientation1), relativeTo: nil)
}
Post
Replies
Boosts
Views
Activity
Hi, I have filed a bug report. I will look into my reality composer pro entities and components.
I created this project for visionOS 1.2 and it worked on that version.
Thanks for the inputs!
I found something new on this.
If I remove the usdc files from my project and keep everything else I don't get the segmentation fault: 11 error. Does visionOS 2 not support usdc files? @Vision Pro Engineer
Hi @Vision Pro Engineer
Converting to USDZ does work. I have multiple models and it will be a lot of work.
I didn't receive any feedback on the bug report I filled up. I wanted to ask should I proceed with converting all my models or wait for the feedback. How long does it usually take to receive a feedback?
Thanks!
Thank you, I will convert the models to USDZ.
I converted the models to USDZ and the segment 11 issue is resolved.