• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Chris12345 · Jul 02, 2013 at 05:32 PM · pathfollow pathitween path

Itween change paths at runtime?

Hello i am using itween plugin and also using itween path i have made 2 paths side by side how can i ride once path and then change to the other path but start where i left the other path? Is this possible is there any other way of doing this? here is my code to ride the path:

 using UnityEngine;
 using System.Collections;
 
 public class follow : MonoBehaviour {
 
     // Use this for initialization
     void Start () {
     iTween.MoveTo(gameObject, iTween.Hash("path", iTweenPath.GetPath("1"), "time", 5, "easetype", iTween.EaseType.easeInOutSine));
     }
 }
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by robertbu · Jul 02, 2013 at 06:05 PM

You can use iTween.PutOnPath() or iTween.PointOnPath() and manage the fraction value yourself using Mathf.Lerp() or something similar. Here is a answer with a script for someone who was trying to do something very similar:

http://answers.unity3d.com/questions/408334/itween-path-swap.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

GameObject to follow another GameObject through a spline with a dynamic end waypoint 0 Answers

Orientation along spline path / Mesh extrusion along path, problem with smooth orientation 1 Answer

Draw path to follow with mouse problems 0 Answers

Simple Waypoints Glitch 0 Answers

Unlit Rendering Path for UI? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges