Phys keepupright: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Undo revision 359826 by CodingAintFun (talk)) Tag: Undo |
||
Line 1: | Line 1: | ||
{{CD|CKeepUpright|file1=phys_controller.cpp}} | {{CD|CKeepUpright|file1=phys_controller.cpp}} | ||
{{ | {{base point|phys_keepupright}} It is a controller that tries to keep an entity facing a particular direction. | ||
== Keyvalues == | == Keyvalues == |
Revision as of 07:27, 16 December 2023
![]() |
---|
CKeepUpright |
![]() |
Template:Base point It is a controller that tries to keep an entity facing a particular direction.
Keyvalues
- Target Entity (attach1) <targetname>
- The entity to align to the desired angles.
- Angular Limit (angularlimit) <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
ortarget
).
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
- Start inactive : [1]
Inputs
- TurnOn
- Enable the controller.
- TurnOff
- Disable the controller.