mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-18 19:39:08 +00:00
Fixed NPC head rotation
This commit is contained in:
1 parent
574858716d
commit
357f848b72
3 files changed
+23
-2
No files matched your search
@@ -32,8 +32,8 @@ public class ModelCustom extends AnimatedGeoModel<EntityCustomModel> {
|
||||
//We get the model data for an entity
|
||||
EntityModelData extraData = (EntityModelData) animationEvent.getExtraDataOfType(EntityModelData.class).get(0);
|
||||
//And we set the head bone rotation to the interpolated pitch and yaw rotations of an entity
|
||||
head.setRotationY((extraData.netHeadYaw) * ((float) Math.PI / 180F));
|
||||
head.setRotationX((extraData.headPitch) * ((float) Math.PI / 180F));
|
||||
head.setRotationY((extraData.netHeadYaw) * ((float) Math.PI / 180F));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user