Garry's Mod Wiki

Garry's Mod Wiki

  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))

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 twice a day. Edits and history are not available.

Last Parsed: Loading...