Difference between revisions of "Body:isSleepingAllowed"

(Added Body:isSleepingAllowed.)
 
(See also addition.)
Line 13: Line 13:
 
== See Also ==
 
== See Also ==
 
* [[parent::Body]]
 
* [[parent::Body]]
 +
* [[Body:setSleepingAllowed]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Returns the sleeping behaviour of the body.}}
 
{{#set:Description=Returns the sleeping behaviour of the body.}}

Revision as of 22:56, 12 April 2012

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

Returns the sleeping behaviour of the body.

Function

Synopsis

allowed = Body:isSleepingAllowed( )

Arguments

None.

Returns

boolean allowed
True if the body is allowed to sleep or false if not.

See Also


Other Languages