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

19.5.12 setData

self = physics.Shape:setData(obj)

Parameter

Type

Description

self

in physics.Shape

The input Shape

obj

in Lua object

An object defined by the programmer

self

out physics.Shape

The input Shape is returned as the output

Sets the programmer data field of the Shape. The programmer can store any Lua object in this field. Returns self.

Introduced in platform.apiLevel = '2.0'