Difference between revisions of "World:getCallbacks"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Get functions to be called when two shapes collide.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 16: Line 16:
 
* [[parent::World]]
 
* [[parent::World]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Get functions to be called when two shapes collide.}}

Revision as of 16:17, 14 February 2010

Get functions to be called when two shapes collide.

Function

Synopsis

add, persist, remove, result = World:getCallbacks( )

Arguments

None.

Returns

function add
Called when two shapes first collide.
function persist
Called each frame, if collision lasts more than 1 frame.
function remove
Called when two shapes finish colliding.
function result
No idea. Never seems to be called...

See Also