Phys slideconstraint: Difference between revisions
Jump to navigation
Jump to search
m (cleanup tag) |
(cleaned up) |
||
Line 1: | Line 1: | ||
{{ | {{wrongtitle|title=phys_slideconstraint}} | ||
==Entity Description== | |||
A constraint that constrains an entity along a line segment. | A constraint that constrains an entity along a line segment. | ||
==Keyvalues== | |||
*{{kv targetname}} | |||
*{{kv TwoObjectPhysics}} | |||
*'''slideaxis''' | |||
:<[[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== | |||
*{{fl TwoObjectPhysics}} | |||
*2 : Limit Endpoints | |||
*{{fl TwoObjectPhysics2}} | |||
==Inputs== | |||
*{{i targetname}} | |||
*{{i TwoObjectPhysics}} | |||
*'''SetVelocity <float>''' | |||
:Set linear velocity along the constraint | |||
==Outputs== | |||
*{{o targetname}} | |||
*{{o TwoObjectPhysics}} | |||
[[Category:Entities]] |
Revision as of 18:38, 5 October 2005
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]
- 2 : Limit Endpoints
- Template:Fl TwoObjectPhysics2
Inputs
- Template:I targetname
- 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
- Template:O targetname
- TwoObjectPhysics:
- OnBreak
- Fired when the constraint breaks.