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

Logic collision pair: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(27 intermediate revisions by 18 users not shown)
Line 1: Line 1:
==Entity Description==
{{LanguageBar}}
'''Entity Name:''' logic_collision_pair
{{TabsBar|main=s2|base=logic_collision_pair}}
{{Underlinked|date=January 2024}}


An entity that can be used to enables/disable vphysics collisions between two target entities.
{{CD|CLogicCollisionPair|file1=logicentities.cpp}}
{{This is a|logical entity|name=logic_collision_pair}}


==Entity Values==
It can be used to enable/disable [[VPhysics]] collisions between two target entities.
===Keys===


* '''Attachment 1''' ''attach1 <target_destination>''
== Keyvalues ==
** The first entity involved in this pair.
{{KV Targetname}}
* '''Attachment 2''' ''attach2 <target_destination>''
{{KV|Attachment 1|intn=attach1|target_destination|The first entity.}}
** The second entity involved in this pair.
{{KV|Attachment 2|intn=attach2|target_destination|The second entity.}}
* '''Start with collisions disabled''' ''startdisabled <choices>''
:{{Note|These targetnames are evaluated at enable time. !activator and !caller are not accepted.}}
** If '''Yes''', starts with collisions between the pair disabled.  If '''No''', starts with collisions between the pair enabled.
{{KV|Start with collisions disabled|intn=StartDisabled|boolean|If '''Yes''', starts with collisions between the pair disabled.  If '''No''', starts with collisions between the pair enabled.}}
* '''Name''' ''targetname <target_source>''
** The name that other entities refer to this entity by. Not available by default, but it can still be added in [[Hammer_Object_Properties_Dialog#SmartEdit|SmartEdit]] mode and used by the [[Entity_I/O_-_How_to_hook_up_entity_inputs_and_outputs.|I/O system]].


 
== Inputs ==
===Inputs===
{{I|EnableCollisions|Enable collisions between the first and second entity.}}
 
{{I|DisableCollisions|Disable collisions between the first and second entity.}}
* '''EnableCollisions'''
** Enable collisions between the first and second entity.
* '''DisableCollisions'''
** Disable collisions between the first and second entity.

Latest revision as of 04:52, 29 April 2025

English (en)Translate (Translate)
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
C++ Class hierarchy
CLogicCollisionPair
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ logicentities.cpp

logic_collision_pair is a logical entity available in all Source Source games.

It can be used to enable/disable VPhysics collisions between two target entities.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Attachment 1 (attach1) <targetname>
The first entity.
Attachment 2 (attach2) <targetname>
The second entity.
Note.pngNote:These targetnames are evaluated at enable time. !activator and !caller are not accepted.
Start with collisions disabled (StartDisabled) <boolean>
If Yes, starts with collisions between the pair disabled. If No, starts with collisions between the pair enabled.

Inputs

EnableCollisions
Enable collisions between the first and second entity.
DisableCollisions
Disable collisions between the first and second entity.