Difference between revisions of "Body:putToSleep"

(oldin notice.)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
+
{{oldin|[[0.8.0]]|080|type=method}}
 
Put the body to sleep.
 
Put the body to sleep.
  
 
A sleeping body is much more efficient to simulate than when awake.
 
A sleeping body is much more efficient to simulate than when awake.
  
 
+
The body will wake up if another body collides with it, if a joint or contact attached to it is destroyed, or if [[Body:wakeUp]] is called.
The body will wakeup if another body collides with it, if a joint or contact attached to it is destroyed, or if [[Body:wakeUp]] is called.
 
  
 
== Function ==
 
== Function ==
Line 16: Line 15:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Put the body to sleep.
+
{{#set:Description=Put the body to sleep.}}
}}
+
{{#set:Since=000}}
 +
 
 +
== Other Languages ==
 +
{{i18n|Body:putToSleep}}

Latest revision as of 18:56, 16 May 2012

Removed in LÖVE 0.8.0
This method is not supported in that and later versions.

Put the body to sleep.

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

The body will wake up if another body collides with it, if a joint or contact attached to it is destroyed, or if Body:wakeUp is called.

Function

Synopsis

Body:putToSleep( )

Arguments

None.

Returns

Nothing.

See Also


Other Languages