test: target in nodm2

This commit is contained in:
Fabian
2021-04-22 18:46:44 +02:00
parent 1ea6ef8da5
commit ae9fbb13a1
2 changed files with 18 additions and 16 deletions

View File

@@ -8,15 +8,6 @@ let vec5 = new mp.Vector3(-500.05966, -2178.3372, 3.6730707);
const polygon = polygons.add([vec1, vec2, vec3, vec4, vec5], 6, true, [255, 255, 255, 255], 0);
export function isTargetInPolygon(pos) {
polygons.pool.forEach(zone => {
if (polygons.isPositionWithinPolygon(pos, zone, zone.dimension)) {
return true;
}
});
return false;
}
export let isInAnyPolygon;
export default function nodmHandler() {