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 (→‎top: clean up, added orphan, underlinked tags)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Multiple issues|
{{Underlinked|date=January 2024}}
{{Orphan|date=January 2024}}
}}
;Add Vector to Vector
;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.
:This initializer allows a vector field to be added to another vector field, with optional scaling on each x/y/z component.
Line 4: Line 9:


----
----


'''[[Generic Operator Options]]'''
'''[[Generic Operator Options]]'''


;Component Scale Factor [Vector]
;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.
: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]
;Input Field [vector field]
Line 19: Line 20:
;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]]

Latest revision as of 22:49, 21 January 2024

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 Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon 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.