Difference between revisions of "Shape:setData"
m (add oldin) |
|||
Line 1: | Line 1: | ||
+ | {{oldin|[[0.8.0]]|080|type=method|text=Use [[Fixture:setUserData]] instead}} | ||
Set data to be passed to the collision callback. | Set data to be passed to the collision callback. | ||
Revision as of 19:28, 16 April 2012
Removed in LÖVE 0.8.0 |
Use Fixture:setUserData instead. |
Set data to be passed to the collision callback.
When a shape collides, the value set here will be passed to the collision callback as one of the parameters. Typically, you would want to store a table reference here, but any value can be used.
Function
Synopsis
Shape:setData( v )
Arguments
any v
- Any Lua value.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info