We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone,,,
after weeks of trying to combine existing codes and codes i wrote my self after combining other codes (...) i realised i am not able to do what im asking in the title all by myself so i would like to ask for HELP! if anyone can indicate me a way to determine the path of an agent/particle according to mesh points (or pregiven vectors in somehow) , please do so!
thanks and hope you respond to my dummy question
Answers
May the RNG be ever in your favor.
TfGuy44 thank you for your response! I managed to make your sketch in 3D but its now exactly what i want... i think its close.
I would like to use agents with flocking (cohesion, separation etc) and within these functions, i m trying to make as targets the mesh points. But first things first, do you think that by importing an .stl can translate this meshes vertices and edges to the nodes and edges of your script?
Thank you again! p.s. what is RNG?? ;)
Hm. If you have flocking agents, you should be able to add a function that motivates them a little bit towards mesh points (much in the same way that the seperate from each other, but in the opposite direction and towards the mesh points, not other agents). There's no need for edges if you only want them to interact with mesh points. I don't know what an .stl file is, so I'm not qualified to answer your question about that. The RNG is the Random Number Generator - the code I wrote above has the potenrial (in very, very rare cases) to cause your program to get stuck in an endless loop if the RNG generates a bad set of numbers for you. It's a pun on the famous line from the Hunger Games movie.
havent loged in for long since forum was down... so thnx TfGuy44 for your responses! i found a way to do it thnx to a friend of mine..