• 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 /
This question was closed Oct 23, 2013 at 02:40 AM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by maclaine · Oct 16, 2013 at 03:09 AM · itweenmultiplepathmoveto

iTween - look for new path, move to or reverse at end?

I would like my object to look for a new path when it reaches the end of current path. if new path is found (within x distance) object moves to and follows new path. if no path is found object reverses direction on current path. I am very new to unity, my background is modeling and animating in 3ds, very new to coding, sorry (hopefully) if there is simple answer, but could not find it searching, thanks

Comment
Add comment · Show 3
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
avatar image robertbu · Oct 16, 2013 at 05:22 AM 0
Share

How do you store the paths: Array of paths? A path assigned to empty game objects?

Paths are typically defined by an array of points (Vector3s). How is the distance measured: From the endpoint of the new path? From one of the Vector3s that define the path? Or from any position on the path?

avatar image maclaine · Oct 22, 2013 at 06:51 PM 0
Share

to answer robertbu, I plan on attaching each path to an object in the scene that the user can move, the user would move the paths around the scene to manipulate a character's position in the scene. the paths would be measured from the end point on the path that the character has reached to the end point of the new path

avatar image robertbu · Oct 24, 2013 at 03:57 PM 0
Share

@maclaine - $$anonymous$$y answer would have taken a bit different approach but I needed the additional information. But it looks like you got an answer you are happy with.

0 Replies

  • Sort: 

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

17 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 avatar image avatar image

Related Questions

iTweens MoveTo and "path" property 7 Answers

itween MoveTo IndexOutOfRangeException 0 Answers

iTween Camera Jitter while moving on path 2 Answers

Using iTween to chain multiple paths together 2 Answers

iTween: change parameters during the path 1 Answer

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