Skip to content

Commit

Permalink
Changed Raycast from center point to gesture
Browse files Browse the repository at this point in the history
  • Loading branch information
anupamchugh committed Jan 20, 2020
1 parent 83ad1ae commit fd12c4a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,17 @@ extension ARView{
return
}

rayCastingMethod()
rayCastingMethod(point: touchInView)
let entities = self.entities(at: touchInView)

}

func rayCastingMethod() {
func rayCastingMethod(point: CGPoint) {


guard let coordinator = self.session.delegate as? ARViewCoordinator else{ return }

guard let raycastQuery = self.makeRaycastQuery(from: self.center,
guard let raycastQuery = self.makeRaycastQuery(from: point,
allowing: .existingPlaneInfinite,
alignment: .horizontal) else {

Expand Down

0 comments on commit fd12c4a

Please sign in to comment.