Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Did I go in wrong way? about root motion

Discussion in 'Scripting' started by F, Apr 20, 2014.

  1. F

    F

    Joined:
    Sep 28, 2012
    Posts:
    13
    Hi,
    I'm scripting a game with animations whose are humanoid + apply root motion,with the requirements became harder , mecanim were full of states and blend trees, I found out that my codes can't get any physics stats of my character,his velocity are floating at every frame,directions are same. So it's impossible to judge next action by current stats. I must simulate some variables likes speed and acceleration.
    It's a one way co-operation, code must tell mecanim what to do next,then mecanim play the right animation or blend tree, code assume physics is right. this must bring me a lot of problems, and I felt it already.

    In such a complicate requests,should I use curve with non-move-ani, or even old-style, the code control everything, then ask mecanim to choose right things?

    I need to make a TPS game,with a bunch of actions,like climb,scram,fast turn or turn with run,etc.

    Any advice will be appreciated.:rolleyes:
     
    Last edited: Apr 20, 2014