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 Amnoon · Aug 28, 2014 at 04:34 PM · camera-movementpathtween

iTween - Path inside other path

Hello,

I need to put a path inside a parent path, but I think it isn't possible with iTween because it calculates the nodes of the paths with global location.

In fact what I need is a parent path making a space ship and a camera advance and inside that path I need another path moving the camera around (special movements, not only orbit) the spaceship. But second path is a list of vector3, they aren't real gameobjects nodes and their positions aren't modified by their parents location.

Now I'm using a modification of Interpolate but iTween has a lot of options I'll be glad to use.

Ideas? 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 · Aug 28, 2014 at 04:38 PM 0
Share

I have an untested theory. iTween paths can be an array of Vector3s or an array of Transforms. If you formed your camera path out of child objects to the ship and made the path out of these Transforms, then the path should travel with the ship.

avatar image Amnoon · Aug 28, 2014 at 04:56 PM 0
Share

Thanks, I've didn't realize about that, but I've just tried and it doesn't work. The problem is iTween doesn't calculate the path on the fly, it's all precalculated.

avatar image robertbu · Aug 28, 2014 at 05:10 PM 0
Share

Here is a bit of a hack:

  • Construct your camera path relative to the world origin

  • $$anonymous$$ake your camera a child of the ship

  • Send an empty game object around the camera path

  • Set the local position of the camera to the position of the empty game object

iTween.PointOnPath() and iTween.PutOnPath() dynamically calculate path position, so you should be able to use these with a path of Transforms. I'm not sure what you get beyond Interpolate in the Wiki doing it this way though.

0 Replies

· Add your reply
  • Sort: 

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

2 People are following this question.

avatar image avatar image

Related Questions

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

Follow a dynamic path? 0 Answers

Path system or Predetermined paths for Camera Fly-throughs / Ladder climbing / etc 1 Answer

Lerping between Camera Paths 1 Answer

put Camera on path with touch &/or arrow keys 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