Movement Lerp to Hitbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(// Updated based on a recent tweet by Chris Green)
Tag: Removed redirect
Line 1: Line 1:
#redirect [[Particle movement#Movement Dampen Relative to Control Point]]
Movement lerp to hitbox will pull the particle back towards the same part of the model it was spawned on. This can be used to both have particles move to follow animated characters, and to keep normal particle operators from moving the particles away from the model.
 
[https://twitter.com/ChrisGr93091552/status/1638182624643649539 According to Chris Green] it's meant to work with initializers such as "position on model random", "position on model at specified height", "set hitbox to closest hitbox", that assigns a hitbox index and hitbox relative coordinates to the new particle.


[[Category:Particle operators]]
[[Category:Particle operators]]

Revision as of 18:10, 21 March 2023

Movement lerp to hitbox will pull the particle back towards the same part of the model it was spawned on. This can be used to both have particles move to follow animated characters, and to keep normal particle operators from moving the particles away from the model.

According to Chris Green it's meant to work with initializers such as "position on model random", "position on model at specified height", "set hitbox to closest hitbox", that assigns a hitbox index and hitbox relative coordinates to the new particle.