Emitting particles one by one ... 2003-12-12 - By garyc
Back Hi John, right, I setup the "emit" command in my expression and it works just fine, I have taken the position data from a null that I have parented to the gun barrel, so I have the particles starting off in the right place. My only problem (well be it more a lack of knowledge) is how can I get a vector (i.e. a direction) for the particle when the barrel is moving around. Like I say I currently have a null parented to the barrel that gives me the position but I have the particle vector set to <0,0,50> so my particles always shoot off down "z" regardless of the guns orientation. Is there some way I can generate a correct vector from the same null that gives me my position, its "z" axis always (as its parented) points the right way, I just need that as a vector to plug into the emit command.
PS: sorry if this is a no brainer questin for the maths guys out there, I am just trying to get my head around the maths thats goes with Maya ;)
cheers gary.
> Best bet is the "emit" command. set up an expression that gets the direction of the gun and > positon, for the velocity vector of the particle and muzzle position. > > then plug those numbers into the expression with the emit command to emit a particle > per frame. > > if you want more than one "shot" per frame (machine gun) > you can offset the position of the "bullets" up and down the velocity vector with some > random value. and loop on the emit command
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-unsubscribe: <http://www.highend3d.com/maya/listserver/> List-subscribe: <http://www.highend3d.com/maya/listserver/> List-archive: <http://www.highend3d.com/maya/archive/>
|
|