Difference between revisions of "Shape:setData"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 +
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 ==
 
== Function ==
Line 13: Line 16:
 
* [[parent::Shape]]
 
* [[parent::Shape]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Set data to be passed to the collision callback.
 +
}}

Revision as of 16:17, 14 February 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.

See Also