Logic measure movement: Difference between revisions
Jump to navigation
Jump to search
Note:Useful for simulating motion outside of the hierarchy system.
Warning:Does not properly update collision physics on the object being moved.
m (Compare to) |
No edit summary |
||
Line 1: | Line 1: | ||
{{base point|logic_measure_movement}} It can measure the movement of an entity relative to another entity and apply that movement to a third entity. | {{base point|logic_measure_movement}} | ||
==Entity description== | |||
It can measure the movement of an entity relative to another entity and apply that movement to a third entity. | |||
{{note|Useful for simulating motion outside of the hierarchy system. }} | {{note|Useful for simulating motion outside of the hierarchy system. }} |
Revision as of 13:59, 24 May 2012
Entity description
It can measure the movement of an entity relative to another entity and apply that movement to a third entity.

Compare with phys_constraint.

Keyvalues
- Entity to Measure ([todo internal name (i)]) <targetname>
- Entity whose movement you want to measure.
- Measure Reference ([todo internal name (i)]) <targetname>
- The movement of Entity to Measure will be measured relative to this entity.
- Entity to Move ([todo internal name (i)]) <targetname>
- This entity will be moved to mimic the motions of Entity to Measure.
- Movement Reference ([todo internal name (i)]) <targetname>
- The Entity to Move will move relative to this entity.
- Movement scale ([todo internal name (i)]) <float>
- A scale to divide the measured movements by, before applying those movements to the Entity to Move.
1 = target entity moves as much as the measured entity,
2 = target entity moves half as far as the measured entity, and
0.5 = target entity moves twice as far as the measured entity.
- Measurement Type ([todo internal name (i)]) <choices>
- What to measure.
- 0 : Position
- 1 : Eye position
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- SetMeasureTarget <string >
- Set the Entity to Measure, whose movement should be measured.
- SetMeasureReference <string >
- Set the Measure Reference entity.
- Target <string >
- Set the Entity to Move, which will be moved to mimic the measured entity.
- SetTargetReference <string >
- Set the Movement Reference entity.
- SetTargetScale <float >
- Set the scale to divide the measured movements by.
- Enable
- Enable the logic_measure_movement.
- Disable
- Disable the logic_measure_movement.