atm it doesn't work for Vectors as it doesnt seem to have a PointInPolygon part of the :contains() arg, so it doesn't work for Vectors.
I just wanna check if a point is in a polygon ;-;
Edited by QuackQuackQuackQuack, 20 February 2017 - 09:55 .
atm it doesn't work for Vectors as it doesnt seem to have a PointInPolygon part of the :contains() arg, so it doesn't work for Vectors.
I just wanna check if a point is in a polygon ;-;
Edited by QuackQuackQuackQuack, 20 February 2017 - 09:55 .
Why not just use Point2 or something to that effect?
Hah found a snippet of 2DGeometry code i had. Circle2(Point2(pred.castPos), 600). Thats how I used it for something and i remember it working. Also pred.castPos is 3D vector from OpenPredict. I figured out how to do it by messing with 2DGeometry lib and looking at Maxxxels examples.
EDIT:
Found my other example which uses Polygons and works perfectly (also laggy because calc's)
https://github.com/C...d.lua#L162-L163
if you use 2dgeometry lib, you need convert it to Point2
alright
0 members, 1 guests, 0 anonymous users