zoukankan      html  css  js  c++  java
  • Animator根运动清除刚体速率问题测试

    在根运动打开时,施加AddForce,速率在后面几帧被清0了:

    没有打开根运动AddForce的情况:

    unity论坛看了下,似乎有人遇到这个问题,而且无解。只能受力状态下关闭根运动

    Q:Im working on a new title right now and I wanted to try out mecanim. I've watched its tutorial and it is indeed impressive to see how easily such motion is achieved using the system.

    However, I ran into my first problem using it not long before I started. My game involves a lot of physics, projectiles that hit the target need to push it back, knock enemies out of the arenas, etc, which I was doing without much problem before. I just add force to rigidbodies on collision and they fly away.

    However, once I put my mecanim animated character, just standing there on idle, it doesnt move when hit, as if it was a kinematic rigidbody (which it isnt).

    How can I have my character move using mecanim for fluid motion, but still be affected by world physics?

    PS: The push back mechanics are working on legacy animated/moved characters

    Thx for the attention

    A:Click on your character. In the inspector you'll see in the Animator a check box: "Apply Root Motion." Disable this and you will be able to knock your guy about using addForce or whatever physics you like all at the same time playing its animation. Obviously you'll want to use root motion most of the time or your guy will just run in place when you use the controls, so you'll need to disable "Apply Root Motion" in script during events such as getting hit.

    http://answers.unity3d.com/questions/407103/mecanim-and-physics.html

    后来想想也奇怪,打开根运动时,AddForce能让角色飞起来,但不能xz轴横移。。

  • 相关阅读:
    寒假学习10
    寒假学习9
    寒假学习8
    寒假学期7
    寒假学习6
    寒假学习5
    寒假学习4
    Notification通知栏的使用
    Service的使用
    BroadcastReceive的使用
  • 原文地址:https://www.cnblogs.com/hont/p/5186694.html
Copyright © 2011-2022 走看看