Hey guys
im working on my final degree piece, whichis a sound sculpture that will consist of 5 robotic arms, each with a 360 degree rotation a 160 tilt. a bit like this -
i want to implement a flocking algorithm consisting of the alignment and separation rules. This algorithm will run unless a pressure sensor in front of an arm is triggered, at which point the corresponding arm will instead follow the location of the audience member, and move randomly slightly to keep everything moving.
I have made a 2d system so far, which uses the mouse XY as the audience member and then triggers the "leader", then runs the above algorithm on it. the rest then average the direction of surrounding members for the alignment.
The problem im having is now moving this into 3d. for the "alignment" rule im currently using the angle of the motors, but this will not apply in the same way when the vertical tilt is taken into account! The same with seperation (although i havent started this yet) it will be a completely different logic than what i am doing currently.
At this point im genuinely stumped. As you can see this is not just a technical problem but also a logical one.
Im basically looking for any suggestions please. or maybe anyone who has worked on anything similar before.
(not sure how to attach the code here aswell as im using multiple tabs)
best regards richard.
1