diff --git a/src/main.zig b/src/main.zig index cf0dce2..8de5caa 100644 --- a/src/main.zig +++ b/src/main.zig @@ -58,6 +58,9 @@ const Particle = struct { { self.show = 0; } + self.acceleration.a.x = 0; + self.acceleration.a.y = 0; + self.acceleration.a.z = 0; } pub fn spawn(self:*Self,xaccel : f32,yaccel : f32) void { @@ -80,8 +83,8 @@ const Particle = struct { self.velocity.a.y += val; } pub fn applyForce(self : *Self,vec : pr.Vec) void { - self.velocity.a.x += vec.a.x; - self.velocity.a.y += vec.a.y; + self.velocity.a.x += vec.a.x * 0.5; + self.velocity.a.y += vec.a.y * 0.5; self.velocity.a.z += vec.a.z; } }; diff --git a/zig-out/bin/raylib-test b/zig-out/bin/raylib-test index 5b403ba..aaa4d08 100755 Binary files a/zig-out/bin/raylib-test and b/zig-out/bin/raylib-test differ