Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 Wesww · Mar 03, 2011 at 04:53 AM · itweenwaypointputonpath

iTween : Move Just a Small Portion of a Path?

Hello, I just purchased the iTween "Using PutOnPath and PointOnPath" example! I plan on purchasing more examples as they become relevant. Someone can point me in the general direction please!

My entire game takes place on a platform. Performing tasks on the platform moves the platform upwards. I would like to change this to iTween, and make it so that performing tasks moves the platform a PORTION of the way along a loooooong path (that is a loop)!

So: What is the best way to smoothly move an object for 2 seconds (at a fixed speed) along an endless (looping) path and then smoothly stop it wherever it happens to be?

(should I use putonpath? pointonpath? waypoints? visual editor with some fancy javascript? "Path-constrained Characters"? etc.)

THANKS!

p.s. I figured out how to do this without iTween by creating an animation and playing it for a few seconds, but iTween looks like a powerful way to make much more elegant curves!

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

2 Replies

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

Answer by Wesww · Jun 06, 2012 at 07:52 PM

The answer was that it indeed was NOT possible. iTween moves things from one node to another node, and isn't intended to stop things in between nodes.

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
avatar image
-1
Wiki

Answer by ben · Mar 23, 2011 at 02:48 PM

drag ur iTweenPath script to camera or an empty game object and set the nodes u needed.....if u need more number of nodes edit in iTweenPathEditor 73rd line from _target.nodeCount = Mathf.Clamp(EditorGUILayout.IntSlider(_target.nodeCount, 0, 10), 2,100); to _target.nodeCount = Mathf.Clamp(EditorGUILayout.IntSlider(_target.nodeCount, 0, 30(can set any no. of nodes)), 2,100); drag the nodes which we have in scene view and create ur own path........give a path name too.....default name is New Path1.....

then write a c# program(iTween Path editor is in c sharp thats y..... if u have it in .js create a .js program) as,

void Start () { iTween.MoveTo(gameObject, iTween.Hash("path" , iTweenPath.GetPath("CamPathForward"), "time" , 10, "easeType", iTween.EaseType.easeInOutSine, "isLocal", true)); }

place the script in the object u wanna move.......

if u place this script other than the object u wanna move declare a game object at first and drag it in inspector, then change gameObject - name of ur game Object CamPathForward - name of the path i have created

if u wanna move the object for a small portion of the path (means till a particular node)get the particular node as it destination or place reduce the path length

Comment
Add comment · Show 4 · 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
avatar image Wesww · Mar 29, 2011 at 07:55 PM 0
Share

Thanks for replying! Does that mean it is not possible to stop in between two nodes? For what I am attempting, from what you have said, I would have to create each node individually and I would have thousands of nodes (or millions even), all precisely the exact same distance apart, to create draw my path.

avatar image Wesww · Mar 29, 2011 at 07:55 PM 0
Share

Obviously that would not be ideal. If there is a way to stop between nodes then I could put the nodes where I want the path to curve only, and move my object just the distance I want each time.

avatar image Wesww · Mar 29, 2011 at 07:55 PM 0
Share

If I cannot stop in between nodes I will go back to creating a long animation (probably in $$anonymous$$aya) and animating a set number of frames, I just thought iTween would be better!

avatar image Wesww · Mar 29, 2011 at 08:14 PM 0
Share

Perhaps this might somehow be possible with Pause(GameObject target)?

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.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

iTween Put On Path percentage 0 Answers

iTween Help Please MoveTo not working 1 Answer

iTween - Traveling around a cylinder 2 Answers

What is the difference of iTween and Waypoint? 0 Answers

How to move an object on a random path with iTween 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges