Garry's Mod Wiki

PhysObj:WorldToLocalVector

PhysObj:WorldToLocalVector

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

Special Pages


Wikis

?

Render Time: 54ms

DB GetPage 38
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 5