Garry's Mod Wiki

Entity:LocalToWorld

Entity:LocalToWorld

  Vector Entity:LocalToWorld( Vector lpos )

Description

Converts a vector local to an entity into a worldspace vector

Arguments

1 Vector lpos
The local vector

Returns

1 Vector
The translated to world coordinates vector

Example

Produces a worldvector 100 units in front of the center of the entity, taking into account the entity's angle

return ent:LocalToWorld(Vector(100,0,0))

Special Pages


Wikis

?

Render Time: 49ms

DB GetPage 31
Generate Html 3
SaveChanges (1) 5
Render Body 0
Render Sidebar 7