Posts

Post not yet marked as solved
1 Replies
674 Views
Is there any example of establishing a EASession streams on a queue run loop besides the main loop?Here's an example of our approach, but would like to know further details.dispatchQueue = DispatchQueue() dispatchQueue?.async { session.inputStream?.delegate = self; session.outputStream?.delegate = self; session.inputStream?.schedule(in: .current, forMode: .default) session.outputStream?.schedule(in: .current, forMode: .default) session.inputStream?.open() session.outputStream?.open() RunLoop.current.run() }
Posted Last updated
.
Post not yet marked as solved
5 Replies
1.8k Views
Has anyone been able to get multiple animations to embed in a USD file & access them using?entity?.availableAnimationsCurrently we can only get one animation to work with the name "default entity animation"
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.4k Views
I'm trying to raycast using RealityKit from the camera's current position.func session(_ session: ARSession, didUpdate frame: ARFrame) { if let results = arView?.scene.raycast(origin: frame.camera.transform, direction: frame.camera.eulerAngles), results.count > 0 { if let distance = results.first?.distance,Since there is little documentation on this, I'm struggling to translate the camera's transform into a raycast.The following works as expected:if let entities = arView?.entities(at: screenCenter), entities.count > 0 { print("entities: \(entities)")But I cannot calculate the distance from the camera.
Posted Last updated
.