Shape:setData

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


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Shape:setData