Difference between revisions of "Body:destroy"

m (included link to other languages)
(Slightly different wording for the current version.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Explicitly destroys the Body.
+
Explicitly destroys the Body and all fixtures and joints attached to it.
When you don't have time to wait for garbage collection, this function  
+
 
may be used to free the object immediately, but note that an error will occur
+
An error will occur if you attempt to use the object after calling this function. In 0.7.2, when you don't have time to wait for garbage collection, this function may be used to free the object immediately.
if you attempt to use the object after calling this function.
+
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 15: Line 15:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Explicitly destroys the Body.
+
{{#set:Description=Explicitly destroys the Body.}}
}}
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Body:destroy}}
 
{{i18n|Body:destroy}}

Latest revision as of 22:21, 12 April 2012

Explicitly destroys the Body and all fixtures and joints attached to it.

An error will occur if you attempt to use the object after calling this function. In 0.7.2, when you don't have time to wait for garbage collection, this function may be used to free the object immediately.

Function

Synopsis

Body:destroy( )

Arguments

None.

Returns

Nothing.

See Also


Other Languages