🏹
Unit Formation
  • WELCOME
    • πŸ‘‹Hello
    • πŸ—ΊοΈRoadmap
    • ⛑️Support & Community
    • πŸŽ“Changelog
  • GETTING STARTED
    • πŸ”ŒImport package
    • βš’οΈAdd unit placement to scene
    • 🚢Add unit movement
    • πŸ“½οΈPosition units in Editor
  • HOW IT WORKS
    • πŸ‘‡Formation Placement
    • πŸ¦₯Unit Formation
    • πŸ“ΊPlacement Visuals
    • πŸ–±οΈInput
    • 🎽Formations
  • Integrations
    • 〽️A* Pathfinding Project
      • πŸ”ŒImport package
      • βš’οΈAdd unit placement to scene
      • 🚢Add unit movement
      • πŸ“½οΈPosition units in Editor
Powered by GitBook
On this page
  1. GETTING STARTED

Add unit movement

Quick guide to set up your units with navigation for formation.

PreviousAdd unit placement to sceneNextPosition units in Editor

Last updated 11 months ago

Package supports navigation systems out of the box:

  • Unity's NavMesh

Underneath they both use AFormationUnit that defines basic unit movement behaviour. You can use any other pathfinding system by implementing either IFormationUnit (interface) or AFormationUnit (abstract class with some basic behaviour).

To use Unity's NavMesh follow the next steps.

Steps to setup:

  1. Open your unit prefab

  2. If you do not have it yet, add NavMeshAgent component to your unit game object that will be controlled for movement.

  3. Then use the provided FormationUnit component and enable or disable built-in rotation capabilities after unit has reached it's formation position.

  4. Save unit prefab.

That is it! With navigation and FormationUnit component you should be able to control your unit's movement.

🚢
A* Pathfinding Project
Formation Unit component