You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > local2World

19.4.11 local2World

wvec = physics.Body:local2World(lvec)

Parameter

Type

Description

self

in physics.Body

The input Body

lvec

in physics.Vect

A vector relative to the position of the Body

wvec

out physics.Vect

A vector in world coordinates

Converts lvec from body-relative coordinates to world coordinates. Returns the converted vector.

Introduced in platform.apiLevel = '2.0'