Spigot Armorstand posing not same as plain minecraft?

Discussion in 'Spigot Plugin Development' started by twanneke8, May 28, 2017.

  1. Ok so when I pose an armorstand through spigot it goes really weird, though the angles are the same as with the summon command, where the armorstand look good:

    Spigot:
    https://i.gyazo.com/d6d6743485c82df0bfc9dc8503db7ba5.png

    Code (Text):
     ArmorStand as = location.getWorld().spawn(location, ArmorStand.class, armorStand ->{
                    armorStand.setArms(true);
                    armorStand.setHeadPose(new EulerAngle(15, 0, 0));
                    armorStand.setLeftLegPose(new EulerAngle(8, 164, 0));
                    armorStand.setRightLegPose(new EulerAngle(42, 242, 0));
                    armorStand.setLeftArmPose(new EulerAngle(130, 149, 0));
                    armorStand.setRightArmPose(new EulerAngle(81, 266, 0));

                });
    Minecraft:
    https://i.gyazo.com/f76b27bb9d135604bfb44d33b34ba67f.png
    /summon armor_stand ~ ~ ~ {ShowArms:1b,Pose:{Head:[15f,0f,0f],LeftLeg:[8f,164f,0f],RightLeg:[42f,242f,0f],LeftArm:[130f,149f,0f],RightArm:[81f,266f,0f]}}


    The minecraft pose is obviously what I want but why is the spigot one so misformed?
     
  2. Got it... Minecraft is in degrees, spigot in radians.
     
    • Agree Agree x 1