Garry's Mod Wiki

WorldToLocal

Vector, Angle WorldToLocal( Vector position, Angle angle, Vector newSystemOrigin, Angle newSystemAngles )

Description

Translates the specified position and angle into the specified coordinate system.

Arguments

1 Vector position
The position that should be translated from the current to the new system.
2 Angle angle
The angles that should be translated from the current to the new system.
3 Vector newSystemOrigin
The origin of the system to translate to.
4 Angle newSystemAngles
The angles of the system to translate to.

Returns

1 Vector
Local position
2 Angle
Local angles

Page Links


Special Pages


Wikis

?

Render Time: 47ms

Session 0
DB GetPage 3
Generate Html 21
SaveChanges 8
Render Body 0
Render Sidebar 12