1.12.2 Problème d'animation simple d'un Mob



  • Bonjour, j'ai eu l'idée de créer un mob custom, j'ai suivi les différents tutoriels et conseil qu'on a pu me fournir, mais voila j'ai un problème, lorsque le mob marche ou se déplace, il n'y a pas d'action de mouvement comme un mob minecraft, il met ses jambes dans une position qu'il maintient jusqu’à l’arrêt du mouvement ( donc pas d'action de va-et-vient) serait-t-il possible de m'aider ? je sèche là ^^"Cordialement et merci d'avance

    Pour le tutoriel sur l'animation je me suis pas mal aidé de se tutoriel : https://www.minecraftforgefrance.fr/topic/111/animer-simplement-un-mob/5

    package fr.deymons.metromod.client.entity.models;//Made with Blockbench
    //Paste this code into your mod.
    
    import net.minecraft.util.math.MathHelper;
    import org.lwjgl.opengl.GL11;
    import net.minecraft.client.model.ModelBase;
    import net.minecraft.client.model.ModelBox;
    import net.minecraft.client.model.ModelRenderer;
    import net.minecraft.client.renderer.GlStateManager;
    import net.minecraft.entity.Entity;
    
    public class ModelNosalis extends ModelBase {
    	public ModelRenderer main;
    	public ModelRenderer body;
    	public ModelRenderer body4;
    	public ModelRenderer body2;
    	public ModelRenderer patte2;
    	public ModelRenderer patte3;
    	public ModelRenderer bone;
    	public ModelRenderer bone2;
    	public ModelRenderer bone3;
    	public ModelRenderer griffe;
    	public ModelRenderer patte4;
    	public ModelRenderer body3;
    	public ModelRenderer patte5;
    	public ModelRenderer patte7;
    	public ModelRenderer patte8;
    	public ModelRenderer bone4;
    	public ModelRenderer bone5;
    	public ModelRenderer bone6;
    	public ModelRenderer griffe2;
    	public ModelRenderer headglobal;
    	public ModelRenderer cou1;
    	public ModelRenderer cou2;
    	public ModelRenderer bouche1;
    	public ModelRenderer patte9;
    	public ModelRenderer patte10;
    	public ModelRenderer patte6;
    	public ModelRenderer bouche2;
    	public ModelRenderer main2;
    	public ModelRenderer main3;
    	public ModelRenderer bouche3;
    	public ModelRenderer bouche4;
    	public ModelRenderer patte11;
    	public ModelRenderer dents;
    	public ModelRenderer bone7;
    	public ModelRenderer griffe3;
    	public ModelRenderer griffe4;
    	public ModelRenderer bone8;
    	public ModelRenderer patte12;
    	public ModelRenderer patte13;
    	public ModelRenderer patte14;
    	public ModelRenderer bouche5;
    	public ModelRenderer bone10;
    	public ModelRenderer bone9;
    
    	public ModelNosalis() {
    		textureWidth = 128;
    		textureHeight = 128;
    
    		main = new ModelRenderer(this);
    		main.setRotationPoint(2.0F, 6.0F, -9.0F);
    		main.cubeList.add(new ModelBox(main, 3, 37, -8.0F, -5.0F, -6.0F, 13, 8, 9, 0.0F, false));
    
    		body = new ModelRenderer(this);
    		body.setRotationPoint(-3.0F, -1.0F, 8.0F);
    		setRotationAngle(body, -0.0873F, 0.0873F, 0.0F);
    		main.addChild(body);
    		body.cubeList.add(new ModelBox(body, 2, 37, -3.9962F, -3.1924F, -6.8369F, 6, 5, 11, 0.0F, false));
    
    		body4 = new ModelRenderer(this);
    		body4.setRotationPoint(-3.0F, -1.0F, 8.0F);
    		setRotationAngle(body4, -0.0873F, -0.0872F, 0.0F);
    		main.addChild(body4);
    		body4.cubeList.add(new ModelBox(body4, 0, 39, 1.0038F, -3.2076F, -6.6632F, 6, 5, 11, 0.0F, false));
    
    		body2 = new ModelRenderer(this);
    		body2.setRotationPoint(1.0F, 7.0F, -2.0F);
    		setRotationAngle(body2, 0.1745F, 0.0F, 0.0F);
    
    		patte2 = new ModelRenderer(this);
    		patte2.setRotationPoint(-4.0F, 7.0F, 5.0F);
    		setRotationAngle(patte2, -0.2618F, 0.0F, 0.0F);
    		patte2.cubeList.add(new ModelBox(patte2, 68, 23, -3.4F, 3.8594F, -2.3175F, 4, 5, 3, 0.0F, false));
    
    		patte3 = new ModelRenderer(this);
    		patte3.setRotationPoint(-4.0F, 7.0F, 5.0F);
    		setRotationAngle(patte3, -1.3962F, -0.0873F, 0.0F);
    		patte3.cubeList.add(new ModelBox(patte3, 6, 42, -3.4438F, -2.3371F, 7.5678F, 3, 8, 2, 0.0F, false));
    
    		bone = new ModelRenderer(this);
    		bone.setRotationPoint(-4.0F, 7.0F, 5.0F);
    		setRotationAngle(bone, 0.0873F, -0.0873F, -0.0873F);
    		bone.cubeList.add(new ModelBox(bone, 83, 28, -4.0366F, 14.344F, 0.7879F, 3, 3, 3, 0.0F, false));
    		bone.cubeList.add(new ModelBox(bone, 83, 28, -4.0366F, 15.844F, 3.3751F, 3, 1, 2, 0.0F, false));
    		bone.cubeList.add(new ModelBox(bone, 83, 28, -1.0366F, 17.344F, 0.7879F, 0, 0, 1, 0.0F, false));
    
    		bone3 = new ModelRenderer(this);
    		bone3.setRotationPoint(8.952F, 12.2212F, 2.5273F);
    		setRotationAngle(bone3, 0.0873F, 0.0F, 0.0F);
    		bone.addChild(bone3);
    
    		bone2 = new ModelRenderer(this);
    		bone2.setRotationPoint(-0.1736F, -0.0139F, -0.1586F);
    		setRotationAngle(bone2, 0.1745F, 0.0873F, -0.0873F);
    		bone.addChild(bone2);
    		bone2.cubeList.add(new ModelBox(bone2, 83, 28, -5.0146F, 8.6594F, -1.4163F, 2, 6, 2, 0.0F, false));
    
    		griffe = new ModelRenderer(this);
    		griffe.setRotationPoint(-4.0F, 7.0F, 5.0F);
    		setRotationAngle(griffe, 0.0873F, 0.0F, 0.0F);
    		griffe.cubeList.add(new ModelBox(griffe, 5, 1, -1.0F, 17.0263F, -2.3988F, 1, 0, 1, 0.0F, false));
    		griffe.cubeList.add(new ModelBox(griffe, 0, 0, -0.4F, 17.0263F, -0.5988F, 0, 0, 1, 0.0F, false));
    		griffe.cubeList.add(new ModelBox(griffe, 91, 109, -1.0F, 16.0263F, -3.3988F, 1, 1, 4, 0.0F, false));
    		griffe.cubeList.add(new ModelBox(griffe, 38, 64, -2.0F, 15.0263F, -1.3988F, 1, 2, 2, 0.0F, false));
    		griffe.cubeList.add(new ModelBox(griffe, 100, 39, -3.4F, 16.0263F, -1.3988F, 1, 1, 3, 0.0F, false));
    		griffe.cubeList.add(new ModelBox(griffe, 92, 108, 0.0F, 16.0263F, -1.9988F, 1, 1, 3, 0.0F, false));
    
    		patte4 = new ModelRenderer(this);
    		patte4.setRotationPoint(-4.0F, 7.0F, 5.0F);
    		setRotationAngle(patte4, -0.5236F, 0.1745F, 0.1745F);
    		patte4.cubeList.add(new ModelBox(patte4, 62, 22, -2.8569F, -1.3928F, -1.6435F, 5, 6, 4, 0.0F, false));
    
    		body3 = new ModelRenderer(this);
    		body3.setRotationPoint(1.0F, 7.0F, -2.0F);
    		setRotationAngle(body3, 0.1745F, 0.0F, 0.0F);
    		body3.cubeList.add(new ModelBox(body3, 22, 97, -5.0F, -2.0F, -5.0F, 9, 3, 10, 0.0F, false));
    
    		patte5 = new ModelRenderer(this);
    		patte5.setRotationPoint(7.0F, 10.0F, 5.0F);
    		setRotationAngle(patte5, -0.5236F, -0.1745F, -0.1745F);
    
    		patte7 = new ModelRenderer(this);
    		patte7.setRotationPoint(7.0F, 7.0F, 3.0F);
    		setRotationAngle(patte7, -0.2618F, 0.0F, 0.0873F);
    		patte7.cubeList.add(new ModelBox(patte7, 28, 32, -1.4733F, 3.4038F, -0.369F, 3, 5, 3, 0.0F, false));
    
    		patte8 = new ModelRenderer(this);
    		patte8.setRotationPoint(7.0F, 7.0F, 3.0F);
    		setRotationAngle(patte8, -1.309F, 0.0F, 0.0F);
    		patte8.cubeList.add(new ModelBox(patte8, 9, 36, -2.0F, -3.9449F, 7.0065F, 2, 8, 2, 0.0F, false));
    
    		bone4 = new ModelRenderer(this);
    		bone4.setRotationPoint(7.0F, 7.0F, 3.0F);
    		setRotationAngle(bone4, 0.0873F, 0.0873F, 0.0F);
    		bone4.cubeList.add(new ModelBox(bone4, 62, 71, -2.5193F, 14.5526F, 2.4725F, 3, 3, 3, 0.0F, false));
    		bone4.cubeList.add(new ModelBox(bone4, 8, 43, -2.5193F, 16.0526F, 5.0597F, 3, 1, 2, 0.0F, false));
    		bone4.cubeList.add(new ModelBox(bone4, 0, 0, -2.5193F, 17.5526F, 2.4725F, 0, 0, 1, 0.0F, false));
    
    		bone5 = new ModelRenderer(this);
    		bone5.setRotationPoint(0.0F, 0.0F, 0.0F);
    		setRotationAngle(bone5, 0.0873F, -0.0873F, 0.0F);
    		bone4.addChild(bone5);
    		bone5.cubeList.add(new ModelBox(bone5, 12, 30, -1.5804F, 9.0314F, 1.9683F, 2, 6, 2, 0.0F, false));
    
    		bone6 = new ModelRenderer(this);
    		bone6.setRotationPoint(-10.5155F, 12.445F, 4.3856F);
    		setRotationAngle(bone6, 0.0873F, 0.0F, 0.0F);
    		bone4.addChild(bone6);
    
    		griffe2 = new ModelRenderer(this);
    		griffe2.setRotationPoint(7.0F, 7.0F, 3.0F);
    		setRotationAngle(griffe2, 0.0873F, 0.0F, 0.0F);
    		griffe2.cubeList.add(new ModelBox(griffe2, 5, 0, -2.0F, 17.2006F, -0.4065F, 1, 0, 1, 0.0F, false));
    		griffe2.cubeList.add(new ModelBox(griffe2, 0, 0, -1.6F, 17.2006F, 1.3935F, 0, 0, 1, 0.0F, false));
    		griffe2.cubeList.add(new ModelBox(griffe2, 91, 108, -2.0F, 16.2006F, -1.4065F, 1, 1, 4, 0.0F, false));
    		griffe2.cubeList.add(new ModelBox(griffe2, 113, 97, -1.0F, 15.2006F, 0.5935F, 1, 2, 2, 0.0F, false));
    		griffe2.cubeList.add(new ModelBox(griffe2, 92, 110, 0.4F, 16.2006F, 0.5935F, 1, 1, 3, 0.0F, false));
    		griffe2.cubeList.add(new ModelBox(griffe2, 113, 98, -3.0F, 16.2006F, -0.0065F, 1, 1, 3, 0.0F, false));
    
    		headglobal = new ModelRenderer(this);
    		headglobal.setRotationPoint(0.0F, 24.0F, 0.0F);
    
    		cou1 = new ModelRenderer(this);
    		cou1.setRotationPoint(2.0F, 5.0F, -16.0F);
    		setRotationAngle(cou1, 0.1745F, 0.0F, 0.0F);
    		cou1.cubeList.add(new ModelBox(cou1, 6, 39, -7.0F, -3.0F, -2.0F, 11, 6, 5, 0.0F, false));
    
    		cou2 = new ModelRenderer(this);
    		cou2.setRotationPoint(2.0F, 5.0F, -16.0F);
    		setRotationAngle(cou2, 0.3491F, 0.0F, 0.0F);
    		cou2.cubeList.add(new ModelBox(cou2, 18, 35, -6.0F, -2.8834F, -6.0977F, 9, 5, 6, 0.0F, false));
    
    		bouche1 = new ModelRenderer(this);
    		bouche1.setRotationPoint(2.0F, 8.0F, -26.0F);
    		setRotationAngle(bouche1, 0.1745F, 0.0F, 0.0F);
    		bouche1.cubeList.add(new ModelBox(bouche1, 78, 30, -5.0F, -2.8264F, -0.1281F, 4, 5, 5, 0.0F, false));
    
    		patte10 = new ModelRenderer(this);
    		patte10.setRotationPoint(7.0F, 7.0F, 3.0F);
    		setRotationAngle(patte10, -0.4363F, -0.1745F, -0.1745F);
    		patte10.cubeList.add(new ModelBox(patte10, 6, 62, -3.6042F, -2.5647F, 0.0594F, 4, 6, 4, 0.0F, false));
    
    		patte6 = new ModelRenderer(this);
    		patte6.setRotationPoint(7.0F, 7.0F, -11.0F);
    		setRotationAngle(patte6, 0.0F, -0.1745F, -0.1745F);
    		patte6.cubeList.add(new ModelBox(patte6, 5, 38, -3.5129F, -1.7323F, -1.7257F, 4, 6, 4, 0.0F, false));
    
    		bouche2 = new ModelRenderer(this);
    		bouche2.setRotationPoint(2.0F, 8.0F, -26.0F);
    		setRotationAngle(bouche2, 0.0873F, 0.0F, 0.0F);
    		bouche2.cubeList.add(new ModelBox(bouche2, 83, 28, -4.0F, 1.3872F, -5.0408F, 5, 1, 5, 0.0F, false));
    
    		main2 = new ModelRenderer(this);
    		main2.setRotationPoint(2.0F, 6.0F, 7.0F);
    		setRotationAngle(main2, -0.1745F, 0.0F, 0.0F);
    		main2.cubeList.add(new ModelBox(main2, 2, 40, -8.0F, -3.3F, -5.0F, 11, 6, 9, 0.0F, false));
    
    		main3 = new ModelRenderer(this);
    		main3.setRotationPoint(2.0F, 7.0F, 14.0F);
    		setRotationAngle(main3, -0.1745F, 0.0F, 0.0F);
    		main3.cubeList.add(new ModelBox(main3, 10, 47, -7.0F, -1.3F, -3.0F, 9, 3, 2, 0.0F, false));
    
    		bouche3 = new ModelRenderer(this);
    		bouche3.setRotationPoint(2.0F, 7.0F, -26.0F);
    		setRotationAngle(bouche3, 0.2618F, 0.0F, 0.0F);
    		bouche3.cubeList.add(new ModelBox(bouche3, 89, 22, -4.0F, -1.0026F, -5.0227F, 5, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 65, 24, -3.0F, -1.7098F, -3.7979F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 66, 24, -3.0F, -1.8066F, 0.8446F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 48, 100, -3.0F, 4.5F, 29.1153F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 47, 98, -3.0F, 3.5F, 27.4422F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 48, 97, -3.0F, 2.7588F, 25.5104F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 48, 100, -3.0F, 2.1F, 23.5785F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 48, 98, -3.0F, 1.3F, 21.6467F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 48, 100, -3.0F, 0.5F, 19.9737F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 47, 98, -3.0F, -0.0176F, 18.0418F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 46, 100, -3.0F, -1.0F, 16.3688F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 45, 98, -3.0F, -1.5176F, 14.4369F, 3, 1, 4, 0.0F, false));
    		bouche3.cubeList.add(new ModelBox(bouche3, 44, 98, -3.0F, -2.0353F, 12.5051F, 3, 1, 4, 0.0F, false));
    
    		patte11 = new ModelRenderer(this);
    		patte11.setRotationPoint(7.0F, 7.0F, -11.0F);
    		setRotationAngle(patte11, 2.618F, -0.0873F, 0.0873F);
    		patte11.cubeList.add(new ModelBox(patte11, 10, 40, -0.6706F, -13.5358F, -7.9319F, 1, 6, 2, 0.0F, false));
    
    		patte9 = new ModelRenderer(this);
    		patte9.setRotationPoint(7.0F, 7.0F, -11.0F);
    		setRotationAngle(patte9, -2.967F, -0.0873F, 0.0F);
    		patte9.cubeList.add(new ModelBox(patte9, 10, 42, -2.0F, -9.9435F, -0.8058F, 2, 7, 2, 0.0F, false));
    
    		bone7 = new ModelRenderer(this);
    		bone7.setRotationPoint(7.0F, 7.0F, -11.0F);
    		setRotationAngle(bone7, 0.1746F, 0.0873F, 0.0F);
    
    		bone9 = new ModelRenderer(this);
    		bone9.setRotationPoint(0.0F, 0.0F, 0.0F);
    		bone7.addChild(bone9);
    		bone9.cubeList.add(new ModelBox(bone9, 105, 115, -2.4128F, 13.6611F, -6.1458F, 3, 2, 3, 0.0F, false));
    
    		bone10 = new ModelRenderer(this);
    		bone10.setRotationPoint(0.0F, 0.0F, 0.0F);
    		bone7.addChild(bone10);
    		bone10.cubeList.add(new ModelBox(bone10, 62, 23, -0.909F, 14.5374F, -3.9242F, 2, 1, 2, 0.0F, false));
    
    		griffe3 = new ModelRenderer(this);
    		griffe3.setRotationPoint(7.0F, 7.0F, -11.0F);
    		setRotationAngle(griffe3, 0.4364F, 0.1745F, 0.0F);
    		griffe3.cubeList.add(new ModelBox(griffe3, 0, 0, -0.9054F, 13.3358F, -10.5325F, 0, 0, 1, 0.0F, false));
    		griffe3.cubeList.add(new ModelBox(griffe3, 112, 97, -1.1054F, 12.3358F, -13.3325F, 1, 1, 4, 0.0F, false));
    		griffe3.cubeList.add(new ModelBox(griffe3, 92, 109, 0.4946F, 12.3358F, -12.3325F, 1, 1, 3, 0.0F, false));
    		griffe3.cubeList.add(new ModelBox(griffe3, 38, 65, 1.3946F, 13.6647F, -8.1759F, 1, 1, 2, 0.0F, false));
    		griffe3.cubeList.add(new ModelBox(griffe3, 104, 96, -2.3054F, 12.3358F, -11.9325F, 1, 1, 3, 0.0F, false));
    
    		griffe4 = new ModelRenderer(this);
    		griffe4.setRotationPoint(-6.0F, 7.0F, -11.0F);
    		setRotationAngle(griffe4, 0.4364F, -0.1745F, 0.0F);
    		griffe4.cubeList.add(new ModelBox(griffe4, 0, 0, 1.8902F, 13.2624F, -10.6899F, 0, 0, 1, 0.0F, false));
    		griffe4.cubeList.add(new ModelBox(griffe4, 34, 65, 1.0902F, 12.2624F, -13.4899F, 1, 1, 4, 0.0F, false));
    		griffe4.cubeList.add(new ModelBox(griffe4, 113, 97, -0.5098F, 12.2624F, -12.4899F, 1, 1, 3, 0.0F, false));
    		griffe4.cubeList.add(new ModelBox(griffe4, 113, 98, 2.2902F, 12.2624F, -12.0899F, 1, 1, 3, 0.0F, false));
    
    		bone8 = new ModelRenderer(this);
    		bone8.setRotationPoint(-6.0F, 7.0F, -11.0F);
    		setRotationAngle(bone8, 0.1746F, -0.0873F, 0.0F);
    		bone8.cubeList.add(new ModelBox(bone8, 36, 92, -0.591F, 13.6611F, -6.1458F, 3, 2, 3, 0.0F, false));
    		bone8.cubeList.add(new ModelBox(bone8, 5, 44, -1.4128F, 14.5374F, -3.9242F, 2, 1, 2, 0.0F, false));
    		bone8.cubeList.add(new ModelBox(bone8, 0, 0, -0.591F, 16.6611F, -6.1458F, 0, 0, 1, 0.0F, false));
    
    		patte12 = new ModelRenderer(this);
    		patte12.setRotationPoint(-6.0F, 7.0F, -11.0F);
    		setRotationAngle(patte12, 2.618F, 0.0873F, -0.0873F);
    		patte12.cubeList.add(new ModelBox(patte12, 10, 41, -1.1294F, -13.5358F, -7.9319F, 1, 6, 2, 0.0F, false));
    
    		patte13 = new ModelRenderer(this);
    		patte13.setRotationPoint(-6.0F, 7.0F, -11.0F);
    		setRotationAngle(patte13, -2.967F, 0.0873F, 0.0F);
    		patte13.cubeList.add(new ModelBox(patte13, 8, 40, -1.0F, -9.9435F, -0.8058F, 3, 7, 2, 0.0F, false));
    
    		patte14 = new ModelRenderer(this);
    		patte14.setRotationPoint(-6.0F, 7.0F, -11.0F);
    		setRotationAngle(patte14, 0.0F, 0.1745F, 0.1745F);
    		patte14.cubeList.add(new ModelBox(patte14, 58, 29, -0.9172F, -1.7323F, -1.7257F, 4, 6, 4, 0.0F, false));
    
    		bouche5 = new ModelRenderer(this);
    		bouche5.setRotationPoint(10.0F, 8.0F, -26.0F);
    		setRotationAngle(bouche5, 0.1745F, 0.0F, 0.0F);
    		bouche5.cubeList.add(new ModelBox(bouche5, 78, 30, -11.0F, -2.8264F, -0.1281F, 5, 5, 5, 0.0F, true));
    	}
    
    	@Override
    	public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
    		setRotationAngles(f, f1, f2, f3, f4, f5);
    		main.render(f5);
    		body2.render(f5);
    		patte2.render(f5);
    		patte3.render(f5);
    		bone.render(f5);
    		griffe.render(f5);
    		patte4.render(f5);
    		body3.render(f5);
    		patte5.render(f5);
    		patte7.render(f5);
    		patte8.render(f5);
    		bone4.render(f5);
    		griffe2.render(f5);
    		headglobal.render(f5);
    		cou1.render(f5);
    		cou2.render(f5);
    		bouche1.render(f5);
    		patte10.render(f5);
    		patte6.render(f5);
    		bouche2.render(f5);
    		main2.render(f5);
    		main3.render(f5);
    		bouche3.render(f5);
    		patte11.render(f5);
    		patte9.render(f5);
    		bone7.render(f5);
    		griffe3.render(f5);
    		griffe4.render(f5);
    		bone8.render(f5);
    		patte12.render(f5);
    		patte13.render(f5);
    		patte14.render(f5);
    		bouche5.render(f5);
    
    
    	}
    
    	public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
    		modelRenderer.rotateAngleX = x;
    		modelRenderer.rotateAngleY = y;
    		modelRenderer.rotateAngleZ = z;
    
    	}
    
    
    	public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) {
    
    		this.patte9.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -2F * f1 + -2.967F;
    		this.patte6.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -2F * f1;
    		this.patte11.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -2F * f1 + 2.618F;
    		this.bone7.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -2F * f1 + 0.1746F;
    		this.griffe3.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -2F * f1 + 0.4364F;
    
    
    		this.patte14.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1;
    		this.patte13.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + -2.967F;
    		this.patte12.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + 2.618F;
    		this.bone8.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + 0.1746F;
    		this.griffe4.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + 0.4364F;
    
    		this.patte4.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + -0.5236F;
    		this.patte2.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + -0.2618F;
    		this.patte3.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + -1.3962F;
    		this.bone.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + 0.0873F;
    		this.griffe.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * 3.8F * f1 + 0.0873F;
    
    		this.patte10.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -3.8F * f1 + -0.4363F;
    		this.patte7.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -3.8F * f1 + -0.2618F;
    		this.patte8.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -3.8F * f1 + -1.309F;
    		this.bone4.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -3.8F * f1 + 0.0873F;
    		this.griffe2.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -3.8F * f1 + 0.0873F;
    
    
    
    	}
    
    
    
    
    
    
    }
    


  • On m'a finalement aidé, en fait il fallait remplacé

    this.patte9.rotateAngleX = MathHelper.cos((180F / (float)Math.PI)) * -2F * f1 + -2.967F;
    

    Par

    this.patte9.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F) * -1.4F * limbSwingAmount  + -2.967F;
    

Log in to reply