Start a new topic

Drag a Model and drop on an ImageDrawable

In my current project, I place multiple Models and ImageDrawables in the 'cam' of an ImageTrackable. Users can drag the Models over the ImageTrackable, just as explained in your "Gestures"-documentation.


This works quite fine. However, I do have some problems tracking the 'actual' position of the finger on the ImageTrackable. Since the xNormalized and yNormalized are relative, I need to translate them to the actual position on the ImageTrackable, which leads to unintuitive behaviour: the Model travels too quick or too slow i.r.t. the finger.


I would like to have an 'mouseOver' event of the ImageDrawables, that is triggered when the finger is going over them, while dragging a Model. In that case I can create a 'drop' location to drop the Model at the position of this ImageDrawable as the Model is triggering an onDragEnded at that moment.


This isn't possible at the moment, is it? Or is there a simple formula to exactly translate the xNormalized and yNormalized to the position on the ImageTrackable?

 


Hello Jasper,


Could you please share some more information regarding your project?

  • Which version of the SDK are you using?
  • Are you using the JS API?
  • Are you using any of our Extensions (Titanium, Cordova, Xamarin, Unity)? If yes, which version are you using?


Thanks,

Eva

Well, as a feature request I suppose this is valid for all versions.

But I'm currently using version 9.5.0 of the Cordova extension.

Login or Signup to post a comment