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

paper plane fly trough field where do i start

Discussion in 'Scripting' started by thebest07111, Nov 8, 2014.

  1. thebest07111

    thebest07111

    Joined:
    Jan 20, 2014
    Posts:
    129
    hello
    for school we need a paper plane object fly trough a field.

    we need to place object by ourself wich attract the paper airplane to it fly's its right path.
    but how do i do that.
    I already have a script that instantiates the objects that need to pull the plane.

    But i dont know how to make a script that pulls the plane towards that object.

    can someone help me?
     
  2. thebest07111

    thebest07111

    Joined:
    Jan 20, 2014
    Posts:
    129
    someone?
     
  3. 420BlazeIt

    420BlazeIt

    Joined:
    Aug 14, 2014
    Posts:
    102
    Create an animation of the paper plane object of it flying through a terrain.
    Simple.

    If it should only be played once the script in JS would be something like :
    Code (JavaScript):
    1. function Start () {
    2.     animation.Play("ANIMATION NAME");
    3. }
    4.  
    Hope that helps. If this was the answer you were looking for mark this reply as an answer.