шел 2026 год люди не могут сделать килку под грим
else if (this.rotationType.is("Smooth")) {
system = new RotationsSystem() {
@override
public void updateRotations(final LivingEntity target) {
if (!Aura.mc.player.isGliding()) {
final Vec3d direction = target.getPos()
.add(0.0, target.getHeight() * 0.6f, 0.0)
.subtract(Aura.mc.player.getEyePos());
final float yaw = (float) MathHelper.wrapDegrees(
Math.toDegrees(Math.atan2(direction.z, direction.x)) - 90.0
);
final float pitch = (float) -Math.toDegrees(
Math.atan2(direction.y, Math.hypot(direction.x, direction.z))
);
RotationStorage.update(
new Rotation(yaw, pitch),
360.0f, 360.0f,
360.0f, 360.0f,
1, 1,
Aura.clientLook.isState()
);
} else {
final Vec3d lerpLookVector = Vec3d.fromPolar(
target.getLerpTargetPitch(),
target.getLerpTargetYaw()
);
final Vec3d rotationVector = target.getRotationVector();
Vec3d direction = target.getPos()
.add(0.0, target.getHeight() * 0.6f, 0.0)
.subtract(Aura.mc.player.getEyePos());
final Vec3d predictedVector = lerpLookVector
.normalize()
.lerp(rotationVector, lerpLookVector.length());
if (Aura.mc.player.isGliding()
&& target.isGliding()
&& ModuleClass.elytraTarget.isEnable()) {
direction = direction.add(
predictedVector.normalize().multiply(
ModuleClass.elytraTarget.forward.getValue().floatValue()
)
);
}
final float yaw = (float) MathHelper.wrapDegrees(
Math.toDegrees(Math.atan2(direction.z, direction.x)) - 90.0
);
final float pitch = (float) -Math.toDegrees(
Math.atan2(direction.y, Math.hypot(direction.x, direction.z))
);
RotationStorage.update(
new Rotation(yaw, pitch),
360.0f, 360.0f,
360.0f, 360.0f,
1, 1,
Aura.clientLook.isState()
);
}
}
};
}