The question is answered, right answer was accepted
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?
Give a look at iTween, an free asset from asset store, it will let you do everything you just described.
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?
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.
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                