diff --git a/build.zig.zon b/build.zig.zon index 2bcfde8..b4f605a 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -25,7 +25,7 @@ .dependencies = .{ .@"raylib-zig" = .{ .url = "https://github.com/Not-Nik/raylib-zig/archive/devel.tar.gz", - .hash = "1220c61380facb4480c01109fda97cf1a37f45308c522a84fdea142ca625593ddc2a", + .hash = "122058d3ea6318efb819d0bffba630afd1a459fa3a99b4bfe4b680a937d5de04d2fc", }, }, .paths = .{ diff --git a/src/main.zig b/src/main.zig index df65c26..8088840 100644 --- a/src/main.zig +++ b/src/main.zig @@ -78,8 +78,8 @@ const Particle = struct { self.velocity.a.y += val; } pub fn applyForce(self: *Self, vec: pr.Vec) void { - self.acceleration.a.x = vec.a.x * 0.8; - self.acceleration.a.y = vec.a.y * 0.8; + self.acceleration.a.x += vec.a.x * 0.8; + self.acceleration.a.y += vec.a.y * 0.8; self.acceleration.a.z = vec.a.z; self.velocity.a.x *= 0.995; self.velocity.a.y *= 0.995; diff --git a/zig-out/bin/raylib-test b/zig-out/bin/raylib-test index 7ab64c6..bac3965 100755 Binary files a/zig-out/bin/raylib-test and b/zig-out/bin/raylib-test differ