{{newinoldin|[[0.7.0]]|070|[[0.8.0]]|080|type=method}}
Return whether a body is allowed to sleep.

A sleeping body is much more efficient to simulate than when awake.

== Function ==
=== Synopsis ===
<source lang="lua">
status = Body:getAllowSleeping( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|boolean|status|True when the body is allowed to sleep.}}
== See Also ==
* [[parent::Body]]
[[Category:Functions]]
{{#set:Description=Return whether a body is allowed to sleep.
}}
== Other Languages ==
{{i18n|Body:getAllowSleeping}}