Emitting particles one by one ... 2003-12-13 - By garyc
Back Hi John, Fantastic, I was thinking last night that I might need a second object to calculate a start point for the vector. The bit I was really not sure about is the normalizing (to a unit vector by the look of it) ... ;) excellent, I can see how this works ...... just what I needed. A Merry Christmas & Happy New Year to yourself and your family .....
many thanks for your time ...
gary.
> float $dir[] = {($posLoc[0] - $posGun[0]),($posLoc[1] - $posGun[1]),($posLoc[2] - $posGun[2])} ; > vector $normalized = <<$dir[0], $dir[1], $dir[2]>>; > $normalized = `unit $normalized`; > //vector $velocityVector = $normalized; // this is your velocity vector !!!! > -john
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- 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/>
|
|