Particle System Operators/Add Vector to Vector: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with ";Add Vector to Vector :This initializer allows a vector field to be added to another vector field, with optional scaling on each x/y/z component. One useful purpose of this is ta...")
 
m (Added category to the page, added shortpagetitle template)
Line 19: Line 19:
;Output Field [vector field]
;Output Field [vector field]
:The field field to add to - the existing value will be added with the scaled input to result in the output value.
:The field field to add to - the existing value will be added with the scaled input to result in the output value.
{{shortpagetitle}}
[[Category: Particle System]]

Revision as of 07:40, 16 June 2019

Add Vector to Vector
This initializer allows a vector field to be added to another vector field, with optional scaling on each x/y/z component.

One useful purpose of this is taking sprite trail which is ignoring delta time and add the scaled normal of the particle (taking from a ground surface, for example) to the position/previous position to get an offset from the spawned position away from the surface normal.



Generic Operator Options


Component Scale Factor [Vector]
Multiplies the input vector by this value. 1 1 1 will be default, while 0 in a particular component will remove its influence.


Input Field [vector field]
The vector field to add from - this will be scaled by the component scale.
Output Field [vector field]
The field field to add to - the existing value will be added with the scaled input to result in the output value.