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

19.2.23 sety

self = physics.Vect:sety(y)

Parameter

Type

Description

self

in physics.Vect

The vector to modify

y

in number

The new value of the y component of the vector

self

out physics.Vect

The input vector is returned as the output

Changes the value of the y component of self. Returns self.

Introduced in platform.apiLevel = '2.0'