Array of Object3D get only node?


Iā€™m working on my NavMesh custom script and I would like to make it more versatile.
For it, I would like to use the NavMesh on multiple object in same time to move to the same point.

For it I tried to change my agent: Object3D to this :

agentsArray?: Array<Object3D> = [];

And to test I added my previous player, problem :
I get only nodes, like it :

Did I miss something ?

Original Post on Discord

by user 224464722878005248

@serializable(Object3D) < it needs the content type of the array and not the array type :slightly_smiling_face:


by user 224464722878005248

Slowly to the new command and conquer xD

by user 224464722878005248