Add Vector to Vector

From Valve Developer Community
Jump to: navigation, search
Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Underlinked - Logo.png
This article needs more links to other articles to help integrate it into the encyclopedia. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024
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.