diff --git a/app/src/modules/simulation/vehicle/navMesh/polygonGenerator.tsx b/app/src/modules/simulation/vehicle/navMesh/polygonGenerator.tsx index a1bbfb0..54f669b 100644 --- a/app/src/modules/simulation/vehicle/navMesh/polygonGenerator.tsx +++ b/app/src/modules/simulation/vehicle/navMesh/polygonGenerator.tsx @@ -44,7 +44,7 @@ export default function PolygonGenerator({ }); const polygons = turf.polygonize(turf.featureCollection(validLineFeatures)); - + renderWallGeometry(wallPoints); if (polygons.features.length > 0) { @@ -115,6 +115,7 @@ export default function PolygonGenerator({ const quaternion = new THREE.Quaternion(); quaternion.setFromUnitVectors(new THREE.Vector3(1, 0, 0), direction); wallMesh.quaternion.copy(quaternion); + wallMesh.name = "agv-collider"; groupRef.current?.add(wallMesh); }