This article's documentation is for anything that uses the Source engine. Click here for more information.

point_angularvelocitysensor

From Valve Developer Community
Revision as of 22:54, 6 January 2024 by PeeBot (talk | contribs) (Replacing {{base point}} with {{this is a}}. This operation was performed by a bot.)
Jump to navigation Jump to search

point_angularvelocitysensor is a point entity available in all Source Source games. It detects whether another entity's angular velocity meets or exceeds a threshold value.

C++ In code, it is represented by theCPointAngularVelocitySensorclass, defined in thePointAngularVelocitySensor.cppfile.

KeyValues

Target Entity Name (target) <targetname>
Name of the entity whose angular velocity will be sensed.
Threshold Velocity (threshold) <float>
The threshold angular velocity to compare against, in degrees per second.
Fire Interval (fireinterval) <float>
Angular velocity must cross the threshold for at least this long to fire.
Axis (axis) <vector>
Use Axis Helper (usehelper) <boolean>
Use axis helper to determine rotation values (clockwise/counter-clockwise).


Inputs

Test
Checks to see if the Target Entity's angular velocity meets or exceeds the Threshold Velocity, firing either the OnGreaterThanOrEqualTo or OnLessThan output based on the result.
TestWithInterval
Checks to see if the Target Entity's angular velocity meets or exceeds the Threshold Velocity. Once the Fire Interval expires, fires the appropriate test result output if the result is stable throughout the Fire Interval.


Outputs

AngularVelocity <floatRedirectInput/float>
Fired when the Target's Angular Velocity changes, passing the new magnitude of the angular velocity.
OnGreaterThan
Fired when the Target Entity goes from slower than the threshold angular velocity to faster than the threshold angular velocity.
OnGreaterThanOrEqualTo
Fired when the Target Entity goes from slower than the threshold angular velocity to faster than the threshold angular velocity.
OnLessThan
Fired when the Target Entity goes from faster than the threshold angular velocity to slower than the threshold angular velocity.
OnLessThanOrEqualTo
Fired when the Target Entity goes from faster than the threshold angular velocity to slower than the threshold angular velocity.
OnEqualTo
Fired when the Target Entity reaches the threshold angular velocity from a different velocity.