Difference between revisions of "Particle System Constraints"

From Valve Developer Community
Jump to: navigation, search
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{otherlang2
 +
|zh-cn = Particle System Constraints:zh-cn
 +
}}
 
{{confirm-box}}
 
{{confirm-box}}
  
Line 8: Line 11:
  
 
; collision mode
 
; collision mode
: Type of collision? Valid ranges not known
+
: {{todo|Type of collision? Valid ranges not known}}
 +
: '0' seems to be default collisions
 +
: '1' includes collisions with what appear to be vis leafs
 
; collision group
 
; collision group
: Known arguments are NONE and DEBRIS?
+
: Known arguments are:
 +
:; <code>NONE</code>
 +
:: Does not collide with anything.
 +
:; <code>DEBRIS</code>
 +
:: Collides with nothing but world and static stuff.
 +
:; <code>INTERACTIVE</code>
 +
:: Collides with everything except interactive debris or debris.
 +
:; <code>NPC</code>
 +
:: Generic NPC group.
 +
:; <code>ACTOR</code>
 +
:: Used so NPCs in scripts ignore the player.
 +
:; <code>PASSABLE</code>
 +
:: Doors that the player shouldn't collide with.
 +
 
 +
 
 +
::Additional snip from the code:
 +
 
 +
        <code>#if defined( TF_CLIENT_DLL )  { "ROCKETS", TFCOLLISION_GROUP_ROCKETS }</code>
 +
 
 +
 
 
; amount of bounce
 
; amount of bounce
: Amount of bounce force to apply when a collision occurs?
+
: Amount of bounce force to apply when a collision occurs.
 
; amount of slide
 
; amount of slide
: Amount of  sliding force to apply when a collision occurs?
+
: Amount of  sliding force applied to particles currently on a surface.
 
; kill particle on collision
 
; kill particle on collision
 
: Destroys the particle when it collides with an object
 
: Destroys the particle when it collides with an object
Line 31: Line 55:
 
: Maximum distance between the two control points. It needs to be equal or greater than the distance between the two control points, in order to work.
 
: Maximum distance between the two control points. It needs to be equal or greater than the distance between the two control points, in order to work.
 
; maximum distance middle
 
; maximum distance middle
: Maximum distance between start and the middle? Default value is -1 which means off?
+
: Maximum distance between start and the middle, Controlled via a circular radius.
 
; maximum distance end
 
; maximum distance end
: Maximum distance between middle and end point? Default value is -1 which means off?
+
: Maximum distance between middle and end point. Default value is -1 which means off.
 
; travel time
 
; travel time
: Maximum time a particle can spend traveling between the two points?
+
: Maximum time a particle can spend traveling between the two points.
 
; random bulge
 
; random bulge
: Random clumping of particles? (No idea)
+
: Random clumping of particles. Works much like emitting a group of particles.
 
; start control point number
 
; start control point number
 
: The starting control point number. 0 is recommended since it is the particle system's origin.
 
: The starting control point number. 0 is recommended since it is the particle system's origin.
Line 54: Line 78:
 
: Use global origin instead of particle origin? (Not recommended)
 
: Use global origin instead of particle origin? (Not recommended)
 
; plane point
 
; plane point
: The 2nd Point to use to define the plane?
+
: The 2nd Point to use to define a more complex plane, based on its coordinates.
 
; plane normal
 
; plane normal
 
: 3D [[vector]] that determines the angle of the plane (same concept as [[VPlane]])
 
: 3D [[vector]] that determines the angle of the plane (same concept as [[VPlane]])

Latest revision as of 13:42, 13 February 2019

简体中文

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
To do: Type of collision? Valid ranges not known
'0' seems to be default collisions
'1' includes collisions with what appear to be vis leafs
collision group
Known arguments are:
NONE
Does not collide with anything.
DEBRIS
Collides with nothing but world and static stuff.
INTERACTIVE
Collides with everything except interactive debris or debris.
NPC
Generic NPC group.
ACTOR
Used so NPCs in scripts ignore the player.
PASSABLE
Doors that the player shouldn't collide with.


Additional snip from the code:
        #if defined( TF_CLIENT_DLL )  { "ROCKETS", TFCOLLISION_GROUP_ROCKETS }


amount of bounce
Amount of bounce force to apply when a collision occurs.
amount of slide
Amount of sliding force applied to particles currently on a surface.
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.

Constrain distance to path between two control points

Keeps particles on a path between two control points. Internally determined control point only?

minimum distance
Minimum distance between the two control points. It's recommended to keep this at zero.
maximum distance
Maximum distance between the two control points. It needs to be equal or greater than the distance between the two control points, in order to work.
maximum distance middle
Maximum distance between start and the middle, Controlled via a circular radius.
maximum distance end
Maximum distance between middle and end point. Default value is -1 which means off.
travel time
Maximum time a particle can spend traveling between the two points.
random bulge
Random clumping of particles. Works much like emitting a group of particles.
start control point number
The starting control point number. 0 is recommended since it is the particle system's origin.
end control point number
The end control point number. Using the start control point number is NOT recommended, as the particles will just around. See this in order to make a control point.
bulge control 0=random 1=orientation of start pnt 2=orientation of end point
Pretty self explanatory, determines where to place the bulge
mid point position
Determines the middle of the path, in a decimal percentage. 0.5 is the middle, 1 is the end, 0 is the beginning?

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 a more complex plane, based on its coordinates.
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