1. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  2. Unity 2017.2 beta is now available for download.
    Dismiss Notice
  3. Unity 2017.1 is now released.
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Reddit AMA with Adam Myhill on Cinemachine, Thurs July 27 - 10AM PT. More info.
    Dismiss Notice
  6. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice
  7. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice

Missile Tracking Script

Discussion in 'Scripting' started by golden_gate, Oct 19, 2009.

  1. golden_gate

    golden_gate

    Joined:
    Jul 22, 2009
    Posts:
    81
    I have seen a few posts on this matter but not an entire script. Does anyone have a script which allows for an object to be launched which can track down and destroy an object

    The weapon/missile shot at the target may not always "see" the target as the target is rotating around a planet.

    Any examples (unity packages) of this working would be appreciated .

    Thanks!!
     
  2. Achim

    Achim

    Joined:
    Dec 19, 2007
    Posts:
    185
    i am thinking about the same but i have not yet a script too.
    what i was thinking, how it could work, was giving the missile a simple smooth-look-at-script and defining the target with raycasting. but i dont exactly know how to give the raycasthit-target to the smooth-look-at-script.
    but when i have a script i will share.