Garry's Mod Wiki

Entity:WorldToLocal

  Vector Entity:WorldToLocal( Vector wpos )

Description

Translates a worldspace vector into a vector relative to the entity's coordinate system.

Arguments

1 Vector wpos
A worldspace vector.

Returns

1 Vector
The correspondent local space vector.