Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

iTween'ing a dynamic path

Discussion in 'Scripting' started by allsops, Nov 10, 2010.

  1. allsops

    allsops

    Joined:
    Nov 4, 2010
    Posts:
    1
    I'm attempting to draw a path with the mouse and then having my character follow said path. I'm using Raycasts to figure out where the hit takes place and a Vector3 array to store the information. I've been using MoveUpdate to move through the points but would really like to be able to use MoveTo so as to get the smooth motion between the points.

    However, my character refuses to move through the array if I use MoveTo (MoveUpdate works, although slightly 'jerky').

    Any help would be appreciated. :)