Garry's Mod Wiki

Revision Difference

Entity:WorldToLocal#565518

<function name="WorldToLocal" parent="Entity" type="classfunc"> <description>Converts a worldspace vector into a vector local to an entity</description>⤶ <description>Translates a worldspace vector into a vector relative to the entity's coordinate system.</description>⤶ <realm>Shared</realm> <args> <arg name="wpos" type="Vector">The world vector</arg>⤶ <arg name="wpos" type="Vector">A worldspace vector.</arg>⤶ </args> <rets> <ret name="" type="Vector">The local vector</ret>⤶ <ret name="" type="Vector">The correspondent local space vector.</ret>⤶ </rets> </function>