Garry's Mod Wiki

Revision Difference

PhysObj:LocalToWorld#510869

<function name="LocalToWorld" parent="PhysObj" type="classfunc">⤶ <description>⤶ Mapping a vector in local frame of the physics object to world frame.⤶ ⤶ <note>this function does translation and rotation, with translation done first.</note>⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="LocalVec" type="Vector">A vector in the physics object&#x27;s local frame</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Vector">The corresponding vector in world frame</ret>⤶ </rets>⤶ </function>⤶ ⤶