浏览代码

DynamicBones: clean clone()

lviguier 7 月之前
父节点
当前提交
51414c5ec5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      h3d/scene/Skin.hx

+ 2 - 2
h3d/scene/Skin.hx

@@ -300,8 +300,8 @@ class Skin extends MultiMaterial {
 			if (dynJoint == null) continue;
 			if (dynJoint == null) continue;
 
 
 			var absPos = dynJoint.absPos == null ? currentAbsPose[dynJoint.index] : dynJoint.absPos;
 			var absPos = dynJoint.absPos == null ? currentAbsPose[dynJoint.index] : dynJoint.absPos;
-			var newWorldPos = absPos.getPosition().clone();
-			var expectedPos = absPos.getPosition().clone();
+			var newWorldPos = absPos.getPosition();
+			var expectedPos = absPos.getPosition();
 
 
 			// Resistance (force resistance)
 			// Resistance (force resistance)
 			var globalForce = dynJoint.globalForce;
 			var globalForce = dynJoint.globalForce;