PolyZone icon indicating copy to clipboard operation
PolyZone copied to clipboard

Problem in isPointInside when use circlezone

Open Cadu2828 opened this issue 1 year ago • 1 comments

After some tests with debug poly active, I noticed that the isPointInside function is not accurately measuring the distance between the middle of the circle and the player

Cadu2828 avatar Oct 02 '23 23:10 Cadu2828

Unsure what you mean by this. CircleZones use a lua vector built-in to get the distance and then does a simple check against the radius (https://github.com/mkafrin/PolyZone/blob/master/CircleZone.lua#L69). I've never noticed an inaccuracy before. Can you post a clip/screenshot showing the issue and code to reproduce it?

mkafrin avatar Oct 29 '23 01:10 mkafrin