{{newin|[[0.8.0]]|080|type=method}}
Returns the sleeping behaviour of the body.

== Function ==
=== Synopsis ===
<source lang="lua">
allowed = Body:isSleepingAllowed( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|boolean|allowed|True if the body is allowed to sleep or false if not.}}
== See Also ==
* [[parent::Body]]
* [[Body:setSleepingAllowed]]
[[Category:Functions]]
{{#set:Description=Returns the sleeping behaviour of the body.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Body:isSleepingAllowed}}