WorldToLocal
Vector, Angle WorldToLocal( Vector position, Angle angle, Vector newSystemOrigin, Angle newSystemAngles )
Description
Translates a worldspace vector and angle into a specific coordinate system.
Arguments
Returns
Example
A matrix math that shows how this is calculated internally.
Garry's Mod
Rust
Steamworks
Wiki Help