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

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