Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CalculateAngle(){
- //Menghitung sudut antara posisi awal dan posisi akhir
- swipeAngle = Mathf.Atan2(finalPosition.y - firstPosition.y, finalPosition.x - firstPosition.x) * 180/Mathf.PI;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement