phys_keepupright
![]() |
---|
CKeepUpright defined in ![]() phys_controller.cpp
|

{{Entity}}
, {{Format}}
) instead.
phys_keepupright
is a point entity available in all Source games. 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.
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Angles:
- Pitch Yaw Roll (Y Z X)
(angles)
<angle> - 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.