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

Particle going towards enemy.

Discussion in 'Scripting' started by Rutenis, Jul 1, 2014.

  1. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297
    Hey, so im thinking, how do i set the particle system, so when i instantiate the particle system, the particles would go towards the enemie?

    -Thank you! :))
     
  2. Kondor0

    Kondor0

    Joined:
    Feb 20, 2010
    Posts:
    596
    Just rotate it's transform towards the enemy. Make sure the default orientation of the particle system is going forward and then use transform.LookAt.
     
  3. Rutenis

    Rutenis

    Joined:
    Aug 7, 2013
    Posts:
    297

    Yeah thats a great idea, thanks. :)