Template:KV TwoObjectPhysics: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Linked to the phys_constraintsystem.)
m (Robot: fixing template case.)
Line 1: Line 1:
{{kv targetname}}
{{KV Targetname}}
* '''attach1'''
* '''attach1'''
: <target_destination> Entity 1
: <target_destination> Entity 1

Revision as of 19:56, 19 January 2009

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

  • attach1
<target_destination> Entity 1
  • attach2
<target_destination> Entity 2
  • constraintsystem
<target_destination> The name of a phys_constraintsystem that this constraint should be a part of. All constraints on a set of entities should be placed in the same system, or they will fight each other during simulation.
  • forcelimit
<float> The amount of force an impact must apply to the constraint to break it. A way of calculating this is to set it to the mass of an object that would break this constraint if it were resting on the constrainted objects. Set to zero for infinite strength.
  • torquelimit
<float> (lbs*distance) The amount of torque required to break the constraint. A way of calculating this is to multiply any reference mass by the resting distance (from the center of mass of the object) needed to break the constraint (1 lb = 453.59237 grams). Set to zero for infinite strength.
  • breaksound
<sound> A sound played when the constraint is broken.