- Home /
Question by
theunboxr · Sep 08, 2016 at 04:23 AM ·
collisionraycastnavmeshagentgridmouseclick
Moving cubes into a grid formation
How would I go about implementing a scene where a random number of 'soldier' cubes (with NavMeshAgents) are spawned and then they move into a grid formation at where the mouse was clicked (depends on how many soldiers were spawned).
Comment
Answer by doublemax · Sep 08, 2016 at 12:40 PM
Make only of soldier the formation walk towards the target. Let all others walk towards a "virtual" grid that you lay over this "leader".