Garry's Mod Wiki

Garry's Mod Wiki

  Vector PhysObj:WorldToLocalVector( Vector WorldVec )

Description

Rotate a vector from the world frame to the local frame of the physics object.

This function only rotates the vector, without any translation operation.

Arguments

1 Vector WorldVec
A vector in the world frame

Returns

1 Vector
The corresponding vector relative to the PhysObj

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 four times a day. Edits and history are not available.

Last Parsed: Loading...