StefanAlbertz

10 October 2009, 12:58 PM

Craig Reynolds came up with the wander movement in his boid-systems... how to do it with particles?

IŽve a firework shot to do and i thought that i could use that wander behaviour to make the flight-path a bit more natural (without using a field). imagine a rocket that explodes, split into 10 parts, each part flying away (inherited velocity + own initial thrust) and while flying, starting to leave the path, like spinning a bit of. Those fireworks look a bit like flyes. Like as if they inherit a life of their own when they are released from the main rocket.

I tried to find a way to use noise to manipulate the velocity vector, but my math knowledge has some flaws here. If i construct a vector vertical to the velocity vector and add it to it to create a new velocity then appliying the stored length of the original vel-vector back onto the new one the problem would be solved. The problem is: setting up the vector vertically onto the original vel-vector. Since there is the "circular freedom" around the vector, there are too many unknown variables to solve the solution .. Reynolds solved it - his flock-of-birds to 3d movements that "slowly" change their direction in 3d space .. i "only" need that code part ...

any help on that would be appreciated!!

Stefan

IŽve a firework shot to do and i thought that i could use that wander behaviour to make the flight-path a bit more natural (without using a field). imagine a rocket that explodes, split into 10 parts, each part flying away (inherited velocity + own initial thrust) and while flying, starting to leave the path, like spinning a bit of. Those fireworks look a bit like flyes. Like as if they inherit a life of their own when they are released from the main rocket.

I tried to find a way to use noise to manipulate the velocity vector, but my math knowledge has some flaws here. If i construct a vector vertical to the velocity vector and add it to it to create a new velocity then appliying the stored length of the original vel-vector back onto the new one the problem would be solved. The problem is: setting up the vector vertically onto the original vel-vector. Since there is the "circular freedom" around the vector, there are too many unknown variables to solve the solution .. Reynolds solved it - his flock-of-birds to 3d movements that "slowly" change their direction in 3d space .. i "only" need that code part ...

any help on that would be appreciated!!

Stefan