Garry's Mod Wiki

PhysObj:WorldToLocal

  Vector PhysObj:WorldToLocal( Vector vec )

Description

Converts a vector to a relative to the physics object coordinate system.

Arguments

1 Vector vec
The vector in world space coordinates.

Returns

1 Vector
The vector local to PhysObj:GetPos.