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'