Phys slideconstraint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{wrongtitle|title=phys_slideconstraint}}
{{wrongtitle|title=phys_slideconstraint}}
{{base_constraint}}
{{base_point}}


==Entity Description==
==Entity Description==

Revision as of 07:41, 12 April 2008

Template:Wrongtitle Template:Base point

Entity Description

A constraint that constrains an entity along a line segment.

Keyvalues

<vecline> Can be set with the Hammer helper tool.
  • slidefriction
<float> Resistance/friction in the constraint
  • SystemLoadScale
<float> Scale of the mass load connected to this constraint (1=just the objects directly connected)

Flags

No Collision until break : [1]
Start inactive : [4]
Change mass to keep stable attachment to world : [8]
Do not connect entities until turned on : [16]

Inputs

Break
Force the constraint to break.
TurnOn
Enable the constraint; do this if the constrained objects don't exist when it spawns. Note that broken constraints cannot be turned back on as they have been deleted.
TurnOff
Disable the constraint.
  • SetVelocity <float>
Set linear velocity along the constraint

Outputs

OnBreak
Fired when the constraint breaks.