Skip to content

How to insert a constant stream of particles? #5

Description

@alt0216

Currently I am adding particles in by inserting it at every point in a certain x,y,z space for each frame. This does not result in a constant steam of down flowing particles but chunk by chunk of particles. Is there a method to generate a constant steam of particles? Thanks.

for (float x = 48; x < 53; ++x) {
for (float y = 85; y < 90; ++y) {
for (float z = 48; z < 53; ++z) {
Vec3f pt(0.01x, 0.01y, 0.01*z);
sim.add_particle(pt);
}
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions