Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void CalculateAngle(){
  2. //Menghitung sudut antara posisi awal dan posisi akhir
  3. swipeAngle = Mathf.Atan2(finalPosition.y - firstPosition.y, finalPosition.x - firstPosition.x) * 180/Mathf.PI;
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement