cnr-isti-vclab / 3DHOP

3D Heritage Online Presenter
http://www.3dhop.net
GNU General Public License v3.0
154 stars 42 forks source link

Touch control #22

Closed DavidGilHidalgo closed 5 years ago

DavidGilHidalgo commented 5 years ago

Hi, I'm trying to access the code that controls tactile gestures on mobile devices. I want to allow the 3D model to move if two fingers are used in the same direction. I don't know if this function is done using JS or spiderGL. Thanks again!

potenziani commented 5 years ago

Hi @DavidGilHidalgo ,

in 3DHOP the handling for touch gestures is implemented in the spidergl.js file (click here to download the current spidergl version not minified).

In particular, take a look at these 5 functions:

... and let us know if you need further help!

DavidGilHidalgo commented 5 years ago

Hi @potenziani thank you so much for the quick response. I'll take a look at spiderGL functions. Great help always!