Difference between revisions of "Shape:setData"

m (included link to other languages)
Line 16: Line 16:
 
* [[Shape:getData]]
 
* [[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.}}
}}
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Shape:setData}}
 
{{i18n|Shape:setData}}

Revision as of 10:53, 25 March 2011

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