Garry's Mod Wiki

PhysObj:LocalToWorld

PhysObj:LocalToWorld

  Vector PhysObj:LocalToWorld( Vector LocalVec )

Description

Mapping a vector in local frame of the physics object to world frame.

this function does translation and rotation, with translation done first.

Arguments

1 Vector LocalVec
A vector in the physics object's local frame

Returns

1 Vector
The corresponding vector in world frame

Special Pages


Wikis

?

Render Time: 43ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 29
Render Body 0
Render Sidebar 7