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 electfall70 · May 04, 2014 at 11:04 PM · rotationtransformlerprail

Lerp position with curved paths

I don't know if you have ever played ratchet & clank 1 , its my alltime favorite game and decided to make a remake . Everything is going well but there is one thing that i can't understand . There is a part on the game where with some boots you get you can grind on rails to get to another place. the problem is that i can't find a way for the player to turn according to the position of the rail any way of making this ? Here is a pic of ratchet and clank BTN for smartphones (made in unity). alt text

alt text

r&c.jpg (76.8 kB)
r&c2.jpg (42.6 kB)
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

Answer by robertbu · May 04, 2014 at 11:09 PM

Typically moving along an irregular path is done using some sort of spline code. There are for purchase spline packages in the Asset store, but the free iTween has some basic spline functionality. If you want to control your own movement, you can use iTween.PointOnPath() and/or iTween.PutOnPath(). iTween also has a path editor. As for facing, if you use standard iTween functions like MoveTo(), you can tell iTween to rotate your character. If you are using iTween.PointOnPath() or iTweenPutOnPath() you just need the character to pick a point slightly ahead on the path and look at it. This assumes you setup your character correctly with his front facing positive 'z' when the rotation is (0,0,0).

Comment
Add comment · Show 2 · 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 electfall70 · May 05, 2014 at 01:27 PM 0
Share

will this work fine ? https://www.assetstore.unity3d.com/#/content/2506

avatar image robertbu · May 05, 2014 at 01:43 PM 0
Share

Just from reading the description, it should work fine. iTween has a visual path editor as well. Also I've read some positive things about SuperSplines, though I've never used the package.

avatar image
0

Answer by MariuszVR · Feb 13, 2021 at 09:28 PM

Hi, I wonder @electfall70 if you ever got somewhere with this type of movement you looked for?

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.

Follow this Question

Answers Answers and Comments

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

Related Questions

Multiple Cars not working 1 Answer

Rotate a set amount over time WITHOUT lerping 0 Answers

How do you smoothly transition/Lerp into a new rotation? 3 Answers

transform.localRotation lerp precision 1 Answer

Unit rotation fails consistently on all slerp rotations after the first? 0 Answers


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