Difference between revisions of "Shape:setData"
m (1 revision: Importing from potato (again).) |
|||
Line 1: | Line 1: | ||
− | |||
Set data to be passed to the collision callback. | Set data to be passed to the collision callback. | ||
Line 15: | Line 14: | ||
== See Also == | == See Also == | ||
* [[parent::Shape]] | * [[parent::Shape]] | ||
+ | * [[Shape:getData]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
{{#set:Description=Set data to be passed to the collision callback. | {{#set:Description=Set data to be passed to the collision callback. | ||
}} | }} |
Revision as of 09:28, 14 June 2010
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.