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: 69ms

DB GetPage 42
Generate Html 2
SaveChanges (1) 16
Render Body 0
Render Sidebar 6