Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Guide to coding projectiles for your tower defense / RTS game

Discussion in 'Community Learning & Teaching' started by terresquall, Jun 17, 2020.

  1. terresquall

    terresquall

    Joined:
    Mar 2, 2014
    Posts:
    29
    Hi folks,

    I've got an article on my blog that covers how to code projectiles for RTS / tower defense purposes. These are the topics it covers:
    • Why projectiles for tower defense / RTS games should home in on their targets.
    • Creating the projectile script.
    • Making the projectile home in on the target and creating effects
    • Handling the edge cases of projectile homing
    • Making the projectile arc as it travels towards its target
    • Implementing the arc using graph equations
    Check it out here and let me know if you have any feedback!
     
    UnrealByte likes this.
  2. RigoCL

    RigoCL

    Joined:
    Sep 22, 2015
    Posts:
    9
    Nice contribution.
    Thanks lots!