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 Idle Rotate: Can the unit rotate when it’s idle to face its destination position/target object?
  7. Rotation Damping: In case the above field field is enabled, how fast does the rotation updates?
  8. Movement Order Audio: Audio clip played when the unit is ordered to move.
  9. Movement Audio: Audio clip played (on loop) when the unit is moving.
  10. Invalid Movement Path Audio: Audio clip played when the movement path is invalid.

How can we help?