Added more API functions to IJobPuppet, and a "limitAngles" variable that lets puppet parts use full angles.

This commit is contained in:
Luis C.M committed 2022-12-22 17:04:53 -06:00
1 parent c950dcfa5a
commit 678ee8fc02
5 files changed
+133 -8

No files matched your search

@@ -628,7 +628,7 @@ public class ModelMPM extends ModelNPCMale{
}
public void setInterpolatedAngles(JobPuppet job, ModelRenderer modelPart, JobPuppet.PartConfig puppetPart) {
float pi = (float) Math.PI;
float pi = (float) Math.PI * (job.limitAngles ? 1 : 2);
if (!job.animate) {
modelPart.rotateAngleX = puppetPart.rotationX * pi;
modelPart.rotateAngleY = puppetPart.rotationY * pi;