tuarua / AR-ANE

ARKit Adobe Air Native Extension for iOS11
Apache License 2.0
35 stars 7 forks source link

Convert local coordinate to world coordinate #20

Closed testingOn closed 6 years ago

testingOn commented 6 years ago

Answer the below. DO NOT DELETE!!

tuarua commented 6 years ago

It is not clear what you are asking

testingOn commented 6 years ago

I want to drag model on my mobile device based on mouse position(onMouseMove). also i want to check if it collide with some other object on mouseUp

tuarua commented 6 years ago

Collision detection is in this example https://github.com/tuarua/AR-ANE/blob/master/example/src/views/examples/PlaneDetectionExample.as

Gestures example https://github.com/tuarua/AR-ANE/blob/master/example/src/views/examples/GestureExample.as

An ipad screen is 2D (X+Y) but an ARKit scene is 3D (X+Y+Z) so I don't know how you are expecting to convert those coordinates.