Garry's Mod Wiki
Description
Translates a vector in the physics object's local space into worldspace coordinates.
Internally transforms the vector by the PhysObj:GetPositionMatrix.
local matrixWorldTransform = PhysObj:GetPositionMatrix()
local vecWorldspaced = Vector()
vecWorldspaced:Set( vecLocal )
vecWorldspaced:Mul( matrixWorldTransform )
return vecWorldspaced
So in GLua it approximates to:
Arguments
Returns
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...