Function
Shape:setData( v )
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.

Synopsis
Shape:setData( v )
Parameters
v any Any Lua value.
Copyright © 2006-2010 LÖVE Development Team.