Phys slideconstraint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Robot: fixing template case.)
Line 20: Line 20:


==Inputs==
==Inputs==
*{{i targetname}}
*{{I Targetname}}
*{{i TwoObjectPhysics}}
*{{i TwoObjectPhysics}}
*'''SetVelocity <float>'''
*'''SetVelocity <float>'''

Revision as of 19:36, 19 January 2009

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

  • TwoObjectPhysics:
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.