[FABRIC] Classic Attack Swing is missing its rotation
coyo-t opened this issue ยท 1 comments
Version Information
Minecraft Version: 1.20.1
Nostalgic Tweaks Version: beta.902
2024-08-02.08-02-44.mp4
2024-08-02.08-06-35.mp4
the classic inview model is animated as such:
// punch position
if (attacking)
{
var atk = (attackTime + tfac) / 7;
var sqr = Mth.sqrt(atk);
glTranslatef(
sin(sqr * PI) * -0.4f,
sin(sqr * TAU) * +0.2f,
sin(atk * PI) * -0.2f
);
}
// positioning (and draw/holster postiong)
float holster = oDrawTime + (drawTime - oDrawTime) * tfac;
glTranslatef(
0.7f * 0.8f,
-0.65f * 0.8f - (1f - holster) * 0.6f,
-0.9f * 0.8f
);
glRotatef(45, 0, 1, 0);
// punch rotation
if (attacking)
{
var atk = (attackTime + tfac) / 7;
glRotatef(+sin(Mth.sqrt(atk) * PI) * 80, 0, 1, 0);
glRotatef(-sin(atk * atk * PI) * 20, 1, 0, 0);
}