This week we expanded on the random walker concept. We were introduced to different ideas and had a brief introduction to vectors. The assignment for next class was to come up with some different iterations of the random walker sketch.
I didn’t really have any specific random walk sketch in mind for this weeks assignment - so I played around with different basic ideas and variations. These are some of the sketches I ended up with.
The first sketch uses location, velocity and acceleration for movement. In addition to that, the direction is determined using the heading() function which calculates the velocity direction and changes the angle of the object according to that. Randomness in generated by the P5.vector2D() function.
The following sketch is using the createShape() function to connect an array of random walkers. A vertex between each walkers’ x and y position turns the array into one structure with movement going in various directions.