Phys keepupright: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=phys_keepupright}}
{{base point|phys_keepupright}} It is a controller that tries to keep an entity facing a particular direction.
{{base_point}}


==Entity Description==
== Keyvalues ==
A controller that tries to keep an entity facing a particular direction.
{{KV|Target Entity|target_destination|The entity to align to the desired angles.}}
{{KV|Angular Limit|float|The maximum angular velocity that this controller can compensate for, in degrees per second.}}
{{KV Targetname}}
{{KV Angles}}


==Keyvalues==
== Flags ==
*{{KV Targetname}}
* 1 : Start inactive
*{{KV Angles}} The direction to try to keep the constrained entity faced at.
*'''attach1''' <target_destination>
:The entity to align to the desired angles. (Wildcards are ''not'' allowed.)
*'''angularlimit''' <float>
:The maximum angular velocity that this controller can compensate for, in degrees per second.


==Flags==
== Inputs ==
*1: Start inactive
{{IO|TurnOn|Enable the controller.}}
{{IO|TurnOff|Disable the controller.}}
{{I Targetname}}


==Inputs==
== Outputs ==
*{{I Targetname}}
{{O Targetname}}
*'''TurnOn'''
:Enable the controller.
*'''TurnOff'''
:Disable the controller.
 
==Outputs==
*{{O Targetname}}

Revision as of 08:19, 27 July 2011

Template:Base point It is a controller that tries to keep an entity facing a particular direction.

Keyvalues

Target Entity ([todo internal name (i)]) <targetname>
The entity to align to the desired angles.
Angular Limit ([todo internal name (i)]) <float>
The maximum angular velocity that this controller can compensate for, in degrees per second.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Flags

  • 1 : Start inactive

Inputs

TurnOn
Enable the controller.
TurnOff
Disable the controller.


Outputs