diff options
| author | iamcheeseman <[hidden email]> | 2026-02-06 22:24:12 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-02-06 22:24:12 -0500 |
| commit | ffd24338b945ea2adf8a3c9ce217407da980b3a0 (patch) | |
| tree | fb64156b7c93906dbe469c7fcc600024fc3cf5bd /src/prop.odin | |
| parent | 308d390ed3f34d99b4e559a7b832211fb20c46ec (diff) | |
Fix many a issue
Diffstat (limited to 'src/prop.odin')
| -rw-r--r-- | src/prop.odin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/prop.odin b/src/prop.odin index 35e16e8..174eceb 100644 --- a/src/prop.odin +++ b/src/prop.odin @@ -1,5 +1,6 @@ package demonchime +import "core:math" import "core:math/linalg" import "core:log" @@ -55,7 +56,11 @@ update_wiggle_props :: proc(dt: f32) { if dist < 0 { dist = 0 } - p.shear = player_vel.x / PLAYER_SPEED * dist * p.shear_factor + p.shear = math.clamp( + player_vel.x / PLAYER_SPEED * dist * p.shear_factor, + -0.25, + 0.25, + ) } } |
