Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
This question was closed Jan 22, 2016 at 07:34 PM by Brogrammar for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by Brogrammar · Jan 20, 2016 at 08:56 PM · animatorroot motion

Using Root-Motion and Non-Root Motion together

I am trying to develop an on-rail shooting game that draws direct influences from Time Crisis. Scripting player movement is crucial because of this and I'm trying to use Unity's animator to move the player from location to location. However, at each location the player is able to move in and out of cover (going up and down) at the press of a button. Although I can script the cover mechanic using movetowards, there are some points in my game where I want to have the player move along a path while still retaining their ability to move in and out of cover, requiring me to use root motion instead of non-root motion for scripting the player's path around the map.

The problem with using root motion to script on-rail movement is that it is very hard to work with since I need to take into account the gameobject's transform relative to localposition rather than it's position in world space.

So I was wondering if there was a method of using both root-motion animations and non-root motion animations together in one gameobject? If there's no such way, would there be other more convenient methods to replicate the ability to script movement on a rail while still retaining the ability to move up and down on command?

Comment
Add comment · Show 5
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 brunocoimbra · Jan 20, 2016 at 09:02 PM 0
Share

Give a look at iTween, an free asset from asset store, it will let you do everything you just described.

avatar image Brogrammar brunocoimbra · Jan 20, 2016 at 09:07 PM 0
Share

I've actually been using iTween for my game until just recently when I realised that while my player gameobject was moving along an iTween path, it didn't allow my player gameobject to move "in and out of cover" which is why I had to resort to Unity's animator.

I'm still very new to iTween and there haven't been any up to date tutorials I could find save for the documentation on iTween's website.

Is there something in iTween that resolves my issue?

avatar image brunocoimbra Brogrammar · Jan 20, 2016 at 11:44 PM 0
Share

What do you mean with "in and out of cover"?

If you managed to enable the character to jump on a path with I tween, to move it between paths you can use "PointOnPath" to get the path's position by the percentage, and "PutOnPath" to adjust it's new position in the new path.

Show more comments

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

38 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 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

Rootmotion orientation won't change 0 Answers

How To preserve Forward momentum of an anim throughout another anim? 0 Answers

MatchTarget Rotating Character 0 Answers

Apply root motion when using Animator.Play() 0 Answers

Apply Root Motion Causes Animation to Not Play 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