Skip to content

Instantly share code, notes, and snippets.

@iambaljeet
Created May 12, 2020 20:59
Show Gist options
  • Save iambaljeet/40bea67f1365349c7edc23aa86107af5 to your computer and use it in GitHub Desktop.
Save iambaljeet/40bea67f1365349c7edc23aa86107af5 to your computer and use it in GitHub Desktop.
/**
* Touch listener to detect when a user touches the ArScene plane to place a model
*/
arFragment.setOnTapArPlaneListener { hitResult, plane, motionEvent ->
setModelOnUi(hitResult)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment