Difference between revisions of "World:getAllowSleeping"

m
m
Line 5: Line 5:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
World:setAllowSleeping( allowSleep )
+
allowSleep = World:getAllowSleeping( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===

Revision as of 11:00, 26 August 2013

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

Returns the sleep behaviour of the world.

Function

Synopsis

allowSleep = World:getAllowSleeping( )

Arguments

None.

Returns

boolean allowSleep
True if the bodies are allowed to sleep or false if not.

See Also


Other Languages