Guest User

Untitled

a guest
Jul 13th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. isOnPoint=function(pos,point,dist)
  2. x,y=point.Size.x/2,point.Size.y/2
  3. pox,poy=point.Position.x,point.Position.y
  4. px,py=pos.x,pos.y
  5. if x + pox - px >= x and x + pox + px <= x then
  6. if y + poy - py >= y and y + poy + py <= y then
  7. return true
  8. end
  9. end
  10. return false
  11. end
Advertisement
Add Comment
Please, Sign In to add comment