Phys hinge: Difference between revisions
Jump to navigation
Jump to search
(Wrote a better description.) |
m (removed line) |
||
Line 8: | Line 8: | ||
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.) | 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== | ==Keyvalues== | ||
Revision as of 22:31, 11 April 2006
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
- Template:Kv twoobjectphysics
- hingefriction
- <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
- Template:I twoobjectphysics
- SetAngularVelocity <float>
- Set angular velocity around the hinge (motor)