phys_lengthconstraint

From Source Entities
Jump to navigation Jump to search

Code classes:

phys_lengthconstraint is a point entity present in all Source games. It controls the distance two entities can be from each other. If one entity gets too close or too far, the other entity will be pushed or pulled.

Note: The maximum distance is not determined by the distance between the entities in Hammer; it's between this entity's own origin and Attached object 2 point.

Flags[edit | edit source]

Bug: For some reason, only the first two flags appear in Hammer.

  • 1: No Collision until break - The two constrained entities will not collide with each other while this constraint is active.
  • 2: Keep Rigid - Makes the minimum length the same as the maximum length.

Keyvalues[edit | edit source]

Additional Length (addlength) <float>
Add or subtract this much from the maximum length.
Minimum Length (minlength) <float>
Minimum distance the entities can be from each other.
Attached object 2 point (attachpoint) <vecline>
The point that Entity 2 is attached by. (For Entity 1, that point is this entity's origin.)

See Also[edit | edit source]