Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. Units
  4. Unit Movement

Unit Movement

The unit’s parent object must have the Unit Movement¬†component attached to it. This is the component that handles the unit’s movement.

  1. Can Move: Can this unit move when ordered by the player?
  2. Can Fly: When true, then this unit will be marked as a flying unit. Make sure that you have an air terrain set up correctly in the Terrain Manager and make sure that the Nav Mesh Agent component of this unit includes the air terrain area in its path finding area mask.
  3. Speed: The unit’s movement speed.
  4. Acceleration: How fast does the unit get to its speed when it starts moving?
  5. Target Position Collider: A Collider Component that is attached to an empty object, child of the main unit object. The Collider must have “Is Trigger” enabled and its size must approximate the area that the unit occupies on the navigation mesh. This collider is defined to organize group movement between units.
  6. Can Move Rotate: Can the unit rotate when it’s moving towards its target destination?
  7. Minimum Move Angle: Only when rotation on movement is disabled, you may input the minimum angle that the unit has to face (rotate to) before moving towards its next destination in the movement path.
  8. Can Idle Rotate: Can the unit rotate when it’s idle to face its destination position/target object?
  9. Rotation Damping: In case the above field field is enabled, how fast does the rotation updates?
  10. Movement Order Audio: Audio clip played when the unit is ordered to move.
  11. Movement Audio: Audio clip played (on loop) when the unit is moving.
  12. Invalid Movement Path Audio: Audio clip played when the movement path is invalid.
  13. Task UI: Allows to display a dedicated task to move the unit in the task panel when it’s selected.
    1. Enabled: Only when this field is checked will the task be displayed.
    2. Icon: The task’s icon that will be displayed.
    3. Panel Category: In which task panel UI category will the task appear. For more information about UI task panel categories, check out the UI Manager.

How can we help?