test: target in nodm2
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user