Creating a dynamic shape for pushing particles
in
Programming Questions
•
2 years ago
Greetings from Spain,
I am trying to implement an sketch in which the displacement of particles will be made by a complex shape made by several points.
A good starting point could be this sketch ( http://wwww.openprocessing.org/visuals/?visualID=5974 ) in which the displacement of particles is made by a fixed circle around the mouse.
My idea is to define some vertex (i.e. 8) for creating a shape, that will be in charge of push the particles. Then I will refresh the variables (points in the vertex) through other functions in order to dynamically change the shape.
Any idea of how to implement that?
Any help is really appreciated :)
I am trying to implement an sketch in which the displacement of particles will be made by a complex shape made by several points.
A good starting point could be this sketch ( http://wwww.openprocessing.org/visuals/?visualID=5974 ) in which the displacement of particles is made by a fixed circle around the mouse.
My idea is to define some vertex (i.e. 8) for creating a shape, that will be in charge of push the particles. Then I will refresh the variables (points in the vertex) through other functions in order to dynamically change the shape.
Any idea of how to implement that?
Any help is really appreciated :)
2