Changed interpolate to interpolateLocal to match latest

API change.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10795 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
PSp..om 11 years ago
parent 641c138a1b
commit b73d42e654
  1. 2
      engine/src/bullet-common/com/jme3/bullet/control/KinematicRagdollControl.java

@ -270,7 +270,7 @@ public class KinematicRagdollControl extends AbstractPhysicsControl implements P
//interpolating between ragdoll position/rotation and keyframed position/rotation //interpolating between ragdoll position/rotation and keyframed position/rotation
tmpRot2.set(tmpRot1).nlerp(link.bone.getModelSpaceRotation(), blendStart / blendTime); tmpRot2.set(tmpRot1).nlerp(link.bone.getModelSpaceRotation(), blendStart / blendTime);
position2.set(position).interpolate(link.bone.getModelSpacePosition(), blendStart / blendTime); position2.set(position).interpolateLocal(link.bone.getModelSpacePosition(), blendStart / blendTime);
tmpRot1.set(tmpRot2); tmpRot1.set(tmpRot2);
position.set(position2); position.set(position2);

Loading…
Cancel
Save