[Reality Composer Pro] Detecting Collision in RealityComposerPro scene

Hello!

https://forums.developer.apple.com/forums/thread/762763

I read this thread, and this is similar to what I'm trying to do. I have two entities in the scene, "HandTrackingEntity", "HandScanner".

  • "HandTrackingEntity": I put Anchoring Component, Collision Component (Trigger) here.
  • "HandScanner": I put Behaviors Component(OnCollision), and Collision Component here.

Here is the pictures how I set the components.

and I set physicsSimulation property to .none.
I was expecting that Timeline will be played when I put my hand(with HandTrackingEntity) on "HandScanner" entity. But it didn't work. Am I missing some steps? And I need sample codes to understand how to apply 'physicsSimulation' property. I'd appreciate it if you could let me know about it.

@PLAY4

I haven't confirmed it, but the thread you referenced indicates you also need to start a SpatialTrackingSession to get collisions from the hand anchor.

let configuration = SpatialTrackingSession.Configuration(tracking: [.hand]) 
let spatialTrackingSession = SpatialTrackingSession()
 _ = await spatialTrackingSession.run(configuration)
[Reality Composer Pro] Detecting Collision in RealityComposerPro scene
 
 
Q