updated navmesh invisible state

This commit is contained in:
2025-03-26 18:40:28 +05:30
parent dc1101db53
commit 3953b1813f
4 changed files with 35 additions and 22 deletions

View File

@@ -12,11 +12,9 @@ interface RawNavMesh {
interface NavMesh {
raw: RawNavMesh;
}
// interface LineProps{
// lines
// planes:
// }
export default function Agv({ }) {
export default function Agv({ lines, plane }: any) {
console.log("planes: ", plane);
console.log("lines: ", lines);
const { scene } = useThree();
const groupRef = useRef<THREE.Group | null>(null);
const [navMesh, setNavMesh] = useState<RecastNavMesh | null>(null);
@@ -1567,7 +1565,12 @@ export default function Agv({ }) {
return (
<>
<PolygonGenerator groupRef={groupRef} processPoint={processPoint} />
<PolygonGenerator
groupRef={groupRef}
processPoint={processPoint}
lines={lines}
plane={plane}
/>
<NavMeshDetails setNavMesh={setNavMesh} />
{pathPoints.map((pair, i) => (
<PathNavigator navMesh={navMesh} pathPoints={pair} key={i} />