Entity's arms are far away from the body #2016
Answered
by
Uskoe
Uskoe
asked this question in
Mod Dev Support
-
For some reason, my entity its arms are far away from its body.I added this line because I don't want my entity to just hover accross the ground when it is moving around. @Override
public void setAngles(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){
super.setAngles((T)entity, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch);
} The problem is, is that it also causes the arms to be far away from the entity, which looks incredibly weird. |
Beta Was this translation helpful? Give feedback.
Answered by
Uskoe
Feb 20, 2022
Replies: 1 comment
-
I had to tweak the arm pivot @Override
public void setAngles(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){
super.setAngles((T)entity, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch);
this.rightArm.pivotX = 5.0F;
this.leftArm.pivotX = -5.0F;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Uskoe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to tweak the arm pivot