Phys hinge

From Valve Developer Community
Revision as of 22:31, 11 April 2006 by Ts2do (talk | contribs) (removed line)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

A physically simulated hinge, rotating entities around an axis. This axis is set either through the helper, or by manually altering the hingeaxis keyvalue.

An entity can be set to rotate around a fixed point in the world by entering its name either in the attach1 (Entity 1) or the attach2 (Entity 2) keyvalue. It can also be set to rotate around another entity by specifying both of these fields, potentially creating a hinge that can be moved around in the world.

To set how tight these two objects will hinge together, you can apparently alter the Mass Scale keyvalue of the constrained entities. (If you come up with a better idea on how to do this, please add it.)

Keyvalues

<float> Resistance/friction in the hinge
  • hingeaxis
<vecline>
  • SystemLoadScale
<float> Scale of the load connected to this hinge (1=just the objects directly connected)

Flags

Inputs

Set angular velocity around the hinge (motor)

Outputs