I'm new to this and currently building an AR-related application, on the old version I stated this
let results = self.hitTest(screenPosition, types: [.featurePoint])
and now I have a problem where the hitTest is deprecated in iOS 14.0
hitTest(_:types:)' was deprecated in iOS 14.0: Use [ARSCNView raycastQueryFromPoint:allowingTarget:alignment]
please advise me on how to fix it, thank you :)
You can assign a node with a name and then use
hitTest(point:, options:[SCNHitTestOption : Any]?)
intouchesBegan
. Below is the code I used: