PhysObj:LocalToWorld
Description
Translates a vector in the local space of the physics object into worldspace coordinates.
Internally transforms the vector by the local matrixWorldTransform = PhysObj:GetPositionMatrix()
local vecWorldspaced = Vector()
vecWorldspaced:Set( vecLocal )
vecWorldspaced:Mul( matrixWorldTransform )
return vecWorldspaced
PhysObj:GetPositionMatrix()'s rotation & translation.
So in GLua it approximates to:
Garry's Mod
Rust
Steamworks
Wiki Help