Garry's Mod Wiki
Description
Rotate a vector from the local frame of the physics object to world frame.
This function only rotates the vector, without any translation operation.
Arguments
Returns
Example
Given the angle of the physics object is angle ( 0.045, 89.952, 89.99 ) ( This can be derived by PhysObj:GetAngles() ), convert the vector ( 1 ,2, 3 ) in this physics object's local frame into world frame.
Output: Angle of the PhysObj: 0.045 89.952 89.993;
Vector in world frame: 3.000585 0.999039 1.999603;
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...