##### Views

- Page
- Discussion
- View source
- History

# World:getCallbacks

Returns functions for the callbacks during the world update.

## Function

Available since LÖVE 0.8.0
This variant is not supported in earlier versions.

### Synopsis

beginContact, endContact, preSolve, postSolve = World:getCallbacks( )

### Arguments

None.

### Returns

`function beginContact`
  Gets called when two fixtures begin to overlap.
`function endContact`
  Gets called when two fixtures cease to overlap.
`function preSolve`
  Gets called before a collision gets resolved.
`function postSolve`
  Gets called after the collision has been resolved.

## Function

Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.

### 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

- World

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/World:getCallbacks"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties