fix not init bug with attractors

This commit is contained in:
jonathan santis 2024-11-28 15:08:08 +01:00
parent 232f3c00d3
commit 009bb10175
2 changed files with 2 additions and 2 deletions

View File

@ -158,8 +158,8 @@ const Attractor = struct {
const distance = self.vec.sub(particle.position);
var force: pr.Vec = undefined;
if (distance.a.x != 0 and distance.a.y != 0) {
force.a.x = distance.a.x / 300;
force.a.y = distance.a.y / 300;
force.a.x = distance.a.x / 1000;
force.a.y = distance.a.y / 1000;
force.a.z = 0;
}
return force;

Binary file not shown.