Skip to content
Andres Oviedo edited this page Jun 24, 2019 · 2 revisions

Touch

  • The touch event is handled by TouchController.java.
  • This implementation of TouchController detects 3 finger gestures:
    • slide: it detects where 1 finger touches down the screen and where it moves. So you have a line. With this line you have a 3d vector. So you can move 3d model.
    • pinch: it detects where 2 fingers touches down the screen and where they move. So you have 2 points getting closer to each other or moving away from each other. So you have a zoom in or zoom out.
    • rotation: complex to explain. implementation is more complex than it should.
Clone this wiki locally