Difference between revisions of "Body:isSleepingAllowed"

(Added Body:isSleepingAllowed.)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{newin|[[0.8.0]]|type=method}}
+
{{newin|[[0.8.0]]|080|type=method}}
 
Returns the sleeping behaviour of the body.
 
Returns the sleeping behaviour of the body.
  
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.}}

Latest revision as of 13:45, 4 May 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