文档

Unity Engine

Unity Engine

velocity

Gets the avatar velocity for the last evaluated frame.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public Vector3 velocity { get; }

Remarks

Animator.applyRootMotion must be enabled for velocity to be calculated.