Movement Lerp to Hitbox

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)
Dead End - Icon.png
This article has no links to other VDC articles. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024

Movement lerp to hitbox will pull the particle back towards the same part of the model it was spawned on, kind of like a magnet. 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.