arcore-android-sdk icon indicating copy to clipboard operation
arcore-android-sdk copied to clipboard

Feature Request: Sample code demonstrating drag-n-drop object placement

Open RavindraVirat opened this issue 8 years ago • 2 comments

I want to implement the functionality to move around the anchor object like "Drag n Drop", using onTouchEvent method I am getting the touch co-ordinates but I am not getting how to apply this co-ordinates to anchor so that it will appear like it is moving, please guide me with the Sample code.

RavindraVirat avatar Apr 17 '18 11:04 RavindraVirat

This is not currently covered in our sample code. There's a couple options:

  1. Use the hitTest result pose each frame without creating an anchor
  2. Each frame during the drag create a new anchor and detach the old one
  3. Create an anchor when the drag starts, store the relative hit pose each frame during the drag, and then create a new anchor when the drag completes.

inio avatar Apr 17 '18 16:04 inio

What is the event that is triggered when drag and drop occured? https://github.com/inio @

This is not currently covered in our sample code. There's a couple options:

  1. Use the hitTest result pose each frame without creating an anchor
  2. Each frame during the drag create a new anchor and detach the old one
  3. Create an anchor when the drag starts, store the relative hit pose each frame during the drag, and then create a new anchor when the drag completes.

What is the event triggered when drag and drop. @nvictornvictor

ChanduMnS avatar Aug 12 '19 13:08 ChanduMnS