@@ -117,7 +117,7 @@ public static class Peashooter {
117117 new Keyframe (1.5f , AnimationHelper .createRotationalVector (-5f , 0f , 0f ),
118118 Transformation .Interpolations .CUBIC )))
119119 .addBoneAnimation ("head" ,
120- new Transformation (Transformation .Targets .TRANSLATE ,
120+ new Transformation (Transformation .Targets .MOVE_ORIGIN ,
121121 new Keyframe (0f , AnimationHelper .createTranslationalVector (0f , -1f , 0f ),
122122 Transformation .Interpolations .CUBIC ),
123123 new Keyframe (0.5f , AnimationHelper .createTranslationalVector (0f , 0f , 0f ),
@@ -197,7 +197,7 @@ public static class Sunflower {
197197 new Keyframe (1.125F , AnimationHelper .createRotationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
198198 new Keyframe (1.5F , AnimationHelper .createRotationalVector (0.0F , 0.0F , 5.0F ), Transformation .Interpolations .CUBIC )
199199 ))
200- .addBoneAnimation ("head" , new Transformation (Transformation .Targets .TRANSLATE ,
200+ .addBoneAnimation ("head" , new Transformation (Transformation .Targets .MOVE_ORIGIN ,
201201 new Keyframe (0.0F , AnimationHelper .createTranslationalVector (0.0F , -1.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
202202 new Keyframe (0.5F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
203203 new Keyframe (0.75F , AnimationHelper .createTranslationalVector (0.0F , -1.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
@@ -225,7 +225,7 @@ public static class Sunflower {
225225 new Keyframe (0.875F , AnimationHelper .createRotationalVector (2.5F , 0.0F , -2.5F ), Transformation .Interpolations .CUBIC ),
226226 new Keyframe (1.5F , AnimationHelper .createRotationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC )
227227 ))
228- .addBoneAnimation ("petals3" , new Transformation (Transformation .Targets .TRANSLATE ,
228+ .addBoneAnimation ("petals3" , new Transformation (Transformation .Targets .MOVE_ORIGIN ,
229229 new Keyframe (0.0F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
230230 new Keyframe (0.125F , AnimationHelper .createTranslationalVector (0.25F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
231231 new Keyframe (0.75F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
@@ -239,7 +239,7 @@ public static class Sunflower {
239239 new Keyframe (0.875F , AnimationHelper .createRotationalVector (2.5F , 0.0F , 2.5F ), Transformation .Interpolations .CUBIC ),
240240 new Keyframe (1.5F , AnimationHelper .createRotationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC )
241241 ))
242- .addBoneAnimation ("petals4" , new Transformation (Transformation .Targets .TRANSLATE ,
242+ .addBoneAnimation ("petals4" , new Transformation (Transformation .Targets .MOVE_ORIGIN ,
243243 new Keyframe (0.0F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
244244 new Keyframe (0.125F , AnimationHelper .createTranslationalVector (-0.25F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
245245 new Keyframe (0.75F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
@@ -299,10 +299,10 @@ public static class TargetZombie {
299299 .addBoneAnimation ("hat" , new Transformation (Transformation .Targets .ROTATE ,
300300 new Keyframe (0.0F , AnimationHelper .createRotationalVector (-7.5F , 0.0F , 0.0F ), Transformation .Interpolations .LINEAR )
301301 ))
302- .addBoneAnimation ("hat" , new Transformation (Transformation .Targets .TRANSLATE ,
302+ .addBoneAnimation ("hat" , new Transformation (Transformation .Targets .MOVE_ORIGIN ,
303303 new Keyframe (0.0F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , -1.0F ), Transformation .Interpolations .LINEAR )
304304 ))
305- .addBoneAnimation ("target" , new Transformation (Transformation .Targets .TRANSLATE ,
305+ .addBoneAnimation ("target" , new Transformation (Transformation .Targets .MOVE_ORIGIN ,
306306 new Keyframe (0.0F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
307307 new Keyframe (1.0F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , -1.0F ), Transformation .Interpolations .CUBIC ),
308308 new Keyframe (2.0F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC )
@@ -325,7 +325,7 @@ public static class TargetZombie {
325325 new Keyframe (0.625F , AnimationHelper .createRotationalVector (-7.5F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
326326 new Keyframe (1.0F , AnimationHelper .createRotationalVector (5.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC )
327327 ))
328- .addBoneAnimation ("rightLeg" , new Transformation (Transformation .Targets .TRANSLATE ,
328+ .addBoneAnimation ("rightLeg" , new Transformation (Transformation .Targets .MOVE_ORIGIN ,
329329 new Keyframe (0.0F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
330330 new Keyframe (0.5F , AnimationHelper .createTranslationalVector (0.0F , 2.0F , 0.0F ), Transformation .Interpolations .CUBIC ),
331331 new Keyframe (0.75F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .CUBIC )
@@ -344,7 +344,7 @@ public static class TargetZombie {
344344 new Keyframe (0.5F , AnimationHelper .createRotationalVector (-101.67F , -30.0F , 60.0F ), Transformation .Interpolations .LINEAR ),
345345 new Keyframe (0.75F , AnimationHelper .createRotationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .LINEAR )
346346 ))
347- .addBoneAnimation ("rightArm" , new Transformation (Transformation .Targets .TRANSLATE ,
347+ .addBoneAnimation ("rightArm" , new Transformation (Transformation .Targets .MOVE_ORIGIN ,
348348 new Keyframe (0.0F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .LINEAR ),
349349 new Keyframe (0.375F , AnimationHelper .createTranslationalVector (0.0F , -2.0F , -1.0F ), Transformation .Interpolations .LINEAR ),
350350 new Keyframe (0.5F , AnimationHelper .createTranslationalVector (0.0F , -1.33F , -0.67F ), Transformation .Interpolations .LINEAR ),
@@ -357,7 +357,7 @@ public static class TargetZombie {
357357 new Keyframe (0.875F , AnimationHelper .createRotationalVector (-152.5F , 0.0F , -40.0F ), Transformation .Interpolations .LINEAR ),
358358 new Keyframe (1.0F , AnimationHelper .createRotationalVector (-101.67F , 30.0F , -60.0F ), Transformation .Interpolations .LINEAR )
359359 ))
360- .addBoneAnimation ("leftArm" , new Transformation (Transformation .Targets .TRANSLATE ,
360+ .addBoneAnimation ("leftArm" , new Transformation (Transformation .Targets .MOVE_ORIGIN ,
361361 new Keyframe (0.0F , AnimationHelper .createTranslationalVector (0.0F , -1.33F , -0.67F ), Transformation .Interpolations .LINEAR ),
362362 new Keyframe (0.25F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .LINEAR ),
363363 new Keyframe (0.5F , AnimationHelper .createTranslationalVector (0.0F , 0.0F , 0.0F ), Transformation .Interpolations .LINEAR ),
@@ -420,7 +420,7 @@ public static class BasicZombie {
420420 new Keyframe (1f , AnimationHelper .createRotationalVector (0f , 0f , 0f ),
421421 Transformation .Interpolations .CUBIC )))
422422 .addBoneAnimation ("rightLeg" ,
423- new Transformation (Transformation .Targets .TRANSLATE ,
423+ new Transformation (Transformation .Targets .MOVE_ORIGIN ,
424424 new Keyframe (0f , AnimationHelper .createTranslationalVector (0f , 0f , 0f ),
425425 Transformation .Interpolations .CUBIC ),
426426 new Keyframe (0.5f , AnimationHelper .createTranslationalVector (0f , 2f , 0f ),
@@ -446,7 +446,7 @@ public static class BasicZombie {
446446
447447 public static final Animation EAT = Animation .Builder .create (1f ).looping ()
448448 .addBoneAnimation ("rightArm" ,
449- new Transformation (Transformation .Targets .TRANSLATE ,
449+ new Transformation (Transformation .Targets .MOVE_ORIGIN ,
450450 new Keyframe (0f , AnimationHelper .createTranslationalVector (0f , 0f , 0f ),
451451 Transformation .Interpolations .LINEAR ),
452452 new Keyframe (0.375f , AnimationHelper .createTranslationalVector (0f , -2f , -1f ),
@@ -466,7 +466,7 @@ public static class BasicZombie {
466466 new Keyframe (0.75f , AnimationHelper .createRotationalVector (0f , 0f , 0f ),
467467 Transformation .Interpolations .LINEAR )))
468468 .addBoneAnimation ("leftArm" ,
469- new Transformation (Transformation .Targets .TRANSLATE ,
469+ new Transformation (Transformation .Targets .MOVE_ORIGIN ,
470470 new Keyframe (0f , AnimationHelper .createTranslationalVector (0f , -1.33f , -0.67f ),
471471 Transformation .Interpolations .LINEAR ),
472472 new Keyframe (0.25f , AnimationHelper .createTranslationalVector (0f , 0f , 0f ),
0 commit comments