Phys slideconstraint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(cleaned up)
m (Removed double targetname keyvalue.)
Line 5: Line 5:


==Keyvalues==
==Keyvalues==
*{{kv targetname}}
*{{kv TwoObjectPhysics}}
*{{kv TwoObjectPhysics}}
*'''slideaxis'''
*'''slideaxis'''

Revision as of 12:04, 24 March 2006

Template:Wrongtitle

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.