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

19.2.29 x

x = physics.Vect:x()

Parameter

Type

Description

self

in physics.Vect

The input vector

x

out number

The value of the x component of the vector

Returns the value of the x component of the input vector.

Introduced in platform.apiLevel = '2.0'