first off i want to say that i’m not sure whether or not this message belongs in the beginner’s forum… but since i’m a beginner i figured what the hell…
my question is almost completely mathmatical in nature, but i believe it has an application in particle systems and other quasi-chaotic systems.
here it is: in designing a particle system that i would like to code, i ran into a snag, how can i have a standard velocity for the system to move with, yet have each individual particle move with a velocity similar but slightly deviant to the system’s standard velocity…
after a bit of thought, i came up with the idea of a ‘Cone of Deviation’ (hence the subject of this post) the idea is basically this:
we know our system’s velocity vector, call it sysVelocity, and we know an angle of deviation from this velocity, call it theta, that defines a cone around the sysVelocity vector in which the velocity of each individual particle should fall.
hmm… that description is kind of hazy… a picture would do it better…
/ ) <------------- theta
*-----------> <- sysVelocity vector
\ ) <------------- theta
and the * is the position of the system
ok… now take the top and bottom vectors (which define the edges of the cone of deviation) and spin them in 3d around sysVelocity… those of you who have a good imagination now see the ‘Cone of Deviation’ (i hope)
alright… so, this is my question (finally), how do i go about picking a random velocity vector that is inside this cone of deviation and assigning it to a particle?
i hope that i explained this properly… i might be going at this in an incredibly over-complex manner… but this is the only way i can think of to do this… if i just use a single velocity vector for the whole system, i get a line of particles all flowing in the same path… if i pick completely random velocities then i get a type of starburst…
thanks in advance for any insight!