Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (a,b)=>{ //a,b are Vector2
- let x = a.x - b.x;
- if (x != 0){
- return x;
- }
- return a.y - b.y; // a tie with x is broken with y
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement