W3cubDocs

/LÖVE

Body:getWorld

Available since LÖVE 0.9.2
This method is not supported in earlier versions.

Gets the World the body lives in.

Function

Synopsis

world = Body:getWorld( )

Arguments

None.

Returns

World world
The world the body lives in.

See Also

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