repel1+
This commit is contained in:
parent
04a0f83208
commit
c1717edef8
@ -81,7 +81,7 @@ const Emitter = struct {
|
|||||||
pub fn init(self: *Emitter) !void {
|
pub fn init(self: *Emitter) !void {
|
||||||
var xrnr = randMinMaxFloat(-1, 1);
|
var xrnr = randMinMaxFloat(-1, 1);
|
||||||
var yrnr = randMinMaxFloat(-0.5, 0.5);
|
var yrnr = randMinMaxFloat(-0.5, 0.5);
|
||||||
self.particles = try allocator.alloc(Particle, 10000);
|
self.particles = try allocator.alloc(Particle, 500000);
|
||||||
for (self.particles) |*p| {
|
for (self.particles) |*p| {
|
||||||
xrnr = randMinMaxFloat(-2, 2);
|
xrnr = randMinMaxFloat(-2, 2);
|
||||||
yrnr = randMinMaxFloat(-2, 2);
|
yrnr = randMinMaxFloat(-2, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user