{{newin|[[0.8.0]]|080|type=method}}
{{oldin|[[0.9.0]]|090|type=method|text=It has been renamed to [[World:isSleepingAllowed]]}}
Returns the sleep behaviour of the world.

== Function ==
=== Synopsis ===
<source lang="lua">
allowSleep = World:getAllowSleeping( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|boolean|allowSleep|True if the bodies are allowed to sleep or false if not.}}
== See Also ==
* [[parent::World]]
* [[World:setAllowSleeping]]
[[Category:Functions]]
{{#set:Description=Returns the sleep behaviour of the world.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|World:getAllowSleeping}}