Garry's Mod Wiki

Garry's Mod Wiki

  Vector PhysObj:GetAngleVelocity()

Description

Gets the angular velocity of the object in degrees per second as a local vector. You can use dot product to read the magnitude from a specific axis.

Returns

1 Vector
The angular velocity

Example

Calculate the RPM of an object rotating around its local Z axis with one revolution per second.

print("RPM", oPhys:GetAngleVelocity():Dot( Vector(0, 0, 1) ) / 6)
Output: RPM 60

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...