updated navmesh invisible state
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user