Revision Difference
PhysObj:WorldToLocalVector#565645
<function name="WorldToLocalVector" parent="PhysObj" type="classfunc">
<description>
Transforms a worldspace vector into the local space of the physics object merely by the rotation of the **inverted** `PhysObj:GetPositionMatrix()`.
⤶
In contrast to <page>PhysObj:WorldToLocal</page>, this function doesn't translate the vector.⤶
Rotationally transforms a worldspace vector into the physics object's local space by the inverted <page>PhysObj:GetPositionMatrix</page>.
⤶
<note>In contrast to <page>PhysObj:WorldToLocal</page>, this function doesn't translate the vector.</note>⤶
</description>
<realm>Shared</realm>
<args>
<arg name="vec" type="Vector">A worldspace vector.</arg>
</args>
<rets>
<ret name="" type="Vector">The result vector of the transformation by rotation.</ret>
<ret name="" type="Vector">The resulting vector from the rotational transformation.</ret>
</rets>
</function>
Garry's Mod
Rust
Steamworks
Wiki Help