Начинающий
- Статус
- Оффлайн
- Регистрация
- 12 Июн 2025
- Сообщения
- 172
- Реакции
- 0
f
так это обычный смутх ротейт йоу
а нахуя делать тему если ты не УВЕРЕН что она байпасит?Сделал ротку для холика хз будет ли байпасить
Code:
Пожалуйста, авторизуйтесь для просмотра ссылки.
Сигмабапас123:private void холикСнапRotation() { if (target == null) return; Vector3d effectivePos = getEffectiveTargetPosition(); if (effectivePos != null) { effectivePos = effectivePos.add(0, target.getHeight() / 2.0F, 0); } else { effectivePos = target.getPositionVec().add(0, target.getHeight() / 2.0F, 0); } Vector3d eyePos = mc.player.getEyePosition(mc.getRenderPartialTicks()); Vector3d vecToTarget = effectivePos.subtract(eyePos); float targetYaw = (float) Math.toDegrees(Math.atan2(-vecToTarget.x, vecToTarget.z)); float targetPitch = (float) MathHelper.clamp(-Math.toDegrees(Math.atan2(vecToTarget.y, Math.hypot(vecToTarget.x, vecToTarget.z))), -90F, 90F); float smoothFactor = 6.0F; float currentYaw = mc.player.rotationYaw; float currentPitch = mc.player.rotationPitch; float deltaYaw = MathHelper.wrapDegrees(targetYaw - currentYaw); float deltaPitch = targetPitch - currentPitch; float smoothYaw = currentYaw + (deltaYaw / smoothFactor); float smoothPitch = currentPitch + (deltaPitch / smoothFactor); smoothPitch = MathHelper.clamp(smoothPitch, -90F, 90F); RotationComponent.update(new Rotation(smoothYaw, smoothPitch), 360, 360, 0, 5); }
И да на ss звука нет потомучто мне было лень ассеты загружать
Если нужны методы пишите
так это обычный смутх ротейт йоу