Smoothed Dragging the Screen

1
  • 7 favourites

Stats

1,283 visits, 1,613 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

This is a simple addition to Predbite's dragging tutorial that adds smoothed drag.

Instead of sending the position of the scroll the calculations of (dragscrollx + dragmousex - touch.absolutelY), etc., it passed it to a variable for the camera position (x_campos, y_campos), and uses a lerp to smooth the movement to the camera position.

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!