Garry's Mod Wiki

Revision Difference

PhysObj:WorldToLocalVector#512649

<function name="WorldToLocalVector" parent="PhysObj" type="classfunc">⤶ <description>⤶ Rotate a vector from the world frame to the local frame of the physics object.⤶ ⤶ <note>This function only rotates the vector, without any translation operation.</note>⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="WorldVec" type="Vector">A vector in the world frame</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Vector">The corresponding vector relative to the PhysObj</ret>⤶ </rets>⤶ </function>⤶ ⤶