Garry's Mod Wiki

PhysObj:LocalToWorld

  Vector PhysObj:LocalToWorld( Vector LocalVec )

Description

Mapping a vector in local frame of the physics object to world frame.

this function does translation and rotation, with translation done first.

Arguments

1 Vector LocalVec
A vector in the physics object's local frame

Returns

1 Vector
The corresponding vector in world frame