From 62be1dc854748bad6da7860bf86b4b3eb4635014 Mon Sep 17 00:00:00 2001 From: Roman Pytkov Date: Tue, 18 Nov 2025 11:00:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D1=80=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BF=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D1=82=D0=B0=20?= =?UTF-8?q?=D0=BE=D1=82=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=20=D0=BE=D1=82?= =?UTF-8?q?=20velocity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wayland/src/figure-animate.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wayland/src/figure-animate.asm b/wayland/src/figure-animate.asm index b1db237..53bf741 100644 --- a/wayland/src/figure-animate.asm +++ b/wayland/src/figure-animate.asm @@ -16,6 +16,8 @@ ZERO_CONST: dd 0.0 ABS_MASK: dd 0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff ANG_COLLIDE_COEF: dd 0.2 ANG_BOOST_FACTOR: dd 0.01 + ; Скорость углового обновления (можно регулировать независимо от FIG_SPEED) + ANG_SPEED: dd 15.0 ANG_MAX: dd 0.03 ANG_SWITCH_FACTOR: dd 0.2 ANG_MAX_DELTA: dd 0.006 @@ -56,9 +58,9 @@ figure_animation_step: addss xmm0, [rdi + WDI_FIGURE + FIG_POSITION + 4] movss [rdi + WDI_FIGURE + FIG_POSITION + 4], xmm0 - ; Обновить угол: angle += angular_velocity * speed + ; Обновить угол: angle += angular_velocity * ANG_SPEED (локальная константа) movss xmm0, [rdi + WDI_FIGURE + FIG_ANG_VEL] - mulss xmm0, [rdi + WDI_FIGURE + FIG_SPEED] + mulss xmm0, [rel ANG_SPEED] addss xmm0, [rdi + WDI_FIGURE + FIG_ANGLE] movss [rdi + WDI_FIGURE + FIG_ANGLE], xmm0