Garry's Mod Wiki

Revision Difference

Global.WorldToLocal#511388

<function name="WorldToLocal" parent="Global" type="libraryfunc">⤶ <description>Translates the specified position and angle into the specified coordinate system.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="position" type="Vector">The position that should be translated from the current to the new system.</arg>⤶ <arg name="angle" type="Angle">The angles that should be translated from the current to the new system.</arg>⤶ <arg name="newSystemOrigin" type="Vector">The origin of the system to translate to.</arg>⤶ <arg name="newSystemAngles" type="Angle">The angles of the system to translate to.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Vector">Local position</ret>⤶ <ret name="" type="Angle">Local angles</ret>⤶ </rets>⤶ </function>⤶ ⤶