Garry's Mod Wiki

PhysObj:WorldToLocal

  Vector PhysObj:WorldToLocal( Vector vec )

Description

Translates a worldspace vector into the local space of the physics object.

Arguments

1 Vector vec
A worldspace vector.

Returns

1 Vector
The correspondent local space vector.