Particles Troubleshooting

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


Q: I have an instantaneously emitted particle with a long lifetime that's supposed to attach to an object, but it's getting left behind when the object moves.

A: Add a position_lock_to_controlpoint operator with a control point of 0. By default that control point is the emitter.

Q: When I used the rope render type, it flickers around for some reason!

A: Rope rendering clicks onto the nearest particle when a particle dies, the only solution is to destroy and create all particles simultaneously. Another solution seems to be adding a Velocity Noise initializer - it's tricky to work with, but it seems to work. Note: this problem does not exist in the L4D2 or Alien Swarm engine branches.