This commit is contained in:
jonathan santis
2024-12-11 14:25:38 +01:00
parent e07b6caa19
commit 76fde82477
4 changed files with 67 additions and 40 deletions

View File

@@ -48,7 +48,6 @@ pub const Particle = struct {
self.acceleration.a.x = xrnr;
self.acceleration.a.y = yrnr;
self.position.a.x = @floatFromInt(rl.getMouseX() - @divTrunc(self.max_x, 2));
std.debug.print("divtrunc x: {}\n,max_x:{}\n", .{ @divTrunc(self.max_x, 2), self.max_x });
self.position.a.y = @floatFromInt(rl.getMouseY() - @divTrunc(self.max_y, 2));
self.velocity.a.x = 0;
self.velocity.a.y = 0;