瀏覽代碼

Merge pull request #69427 from TokageItLab/remove-wrong-method-root-pos

Remove unneeded calc in root motion
Rémi Verschelde 2 年之前
父節點
當前提交
a7fcfacaa5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/animation/animation_tree.cpp

+ 1 - 1
scene/animation/animation_tree.cpp

@@ -1630,7 +1630,7 @@ void AnimationTree::_process_graph(double p_delta) {
 					TrackCacheTransform *t = static_cast<TrackCacheTransform *>(track);
 
 					if (t->root_motion) {
-						root_motion_position = root_motion_rotation.xform_inv(t->loc);
+						root_motion_position = t->loc;
 						root_motion_rotation = t->rot;
 						root_motion_scale = t->scale - Vector3(1, 1, 1);