Difference between revisions of "Particle System Constraints"

From Valve Developer Community
Jump to: navigation, search
m (wiki formatting)
(Collision via traces, following TomEdward's formatting)
Line 2: Line 2:
  
 
'''Particle Constraints''' prevent particles from passing through certain areas, such as brushes. The can also be user-defined, such as a 2-Dimensional plane.
 
'''Particle Constraints''' prevent particles from passing through certain areas, such as brushes. The can also be user-defined, such as a 2-Dimensional plane.
 +
 +
== Collision via traces ==
 +
 +
Uses traces for checking collisions.
 +
 +
; collision mode
 +
: Type of collision? Valid ranges not known
 +
; collision group
 +
: Known arguments are NONE and DEBRIS?
 +
; amount of bounce
 +
: Amount of bounce force to apply when a collision occurs?
 +
; amount of slide
 +
: Amount of  sliding force to apply when a collision occurs?
 +
; kill particle on collision
 +
: Destroys the particle when it collides with an object
 +
; brush only
 +
: If 1, the particle will collide only with brushes
 +
; trace accuracy tolerance
 +
: Amount of tolerance to use when calculating collisions. Higher values mean more tolerance, but less realistic collisions. Lower values mean more accurate collisions, most likely at the cost of additional calculations.
  
 
== Prevent passing through a plane ==
 
== Prevent passing through a plane ==

Revision as of 14:20, 30 August 2009

Particle Constraints prevent particles from passing through certain areas, such as brushes. The can also be user-defined, such as a 2-Dimensional plane.

Collision via traces

Uses traces for checking collisions.

collision mode
Type of collision? Valid ranges not known
collision group
Known arguments are NONE and DEBRIS?
amount of bounce
Amount of bounce force to apply when a collision occurs?
amount of slide
Amount of sliding force to apply when a collision occurs?
kill particle on collision
Destroys the particle when it collides with an object
brush only
If 1, the particle will collide only with brushes
trace accuracy tolerance
Amount of tolerance to use when calculating collisions. Higher values mean more tolerance, but less realistic collisions. Lower values mean more accurate collisions, most likely at the cost of additional calculations.

Prevent passing through a plane

Blocks particles from passing through an imaginary two-dimensional plane. Default settings make it at the bottom of the particle's origin.

global origin
Use global origin instead of particle origin? (Not recommended)
plane point
The 2nd Point to use to define the plane?
plane normal
3D vector that determines the angle of the plane (same concept as VPlane)

Prevent passing through static part of world

Prevents passing through any static part of the world. I.e. prop_statics, brushes, etc