This article's documentation is for anything that uses the Source engine. Click here for more information.

env_physimpact

From Valve Developer Community
Revision as of 22:49, 6 January 2024 by PeeBot (talk | contribs) (Replacing {{base point}} with {{this is a}}. This operation was performed by a bot.)
Jump to navigation Jump to search
English (en)Translate (Translate)

env_physimpact is a point entity available in all Source Source games. It causes a physics impact on another entity. The direction of the impact is determined by the angles set.

C++ In code, it is represented by theCPhysImpactclass, defined in thephysobj.cppfile.

Flags

  • 1: No fall-off
  • 2: Infinite Length
  • 4: Ignore Mass
  • 8: Ignore Surface Normal When Applying Force[Clarify]

Keyvalues

Magnitude (magnitude) ([todo internal name (i)]) <integer>
Strength of the impact.
Distance (distance) ([todo internal name (i)]) <integer>
How far to project the impact (if 0 uses a default value).
Point to Entity (directionentityname) ([todo internal name (i)]) <targetname>
If set, Distance and Pitch Yaw Roll settings are ignored and the direction and distance to the target entity will be used.


Inputs

Impact
Trigger the impact


Outputs